Package org.jaxen.expr
Interface LocationPath
-
- All Superinterfaces:
Expr
,java.io.Serializable
- All Known Implementing Classes:
DefaultAbsoluteLocationPath
,DefaultRelativeLocationPath
public interface LocationPath extends Expr
Represents an XPath location path such as//foo/bar
orpre:baz[position()=last()]
. This is production 1 in the XPath 1.0 specification:[1] LocationPath ::= RelativeLocationPath | AbsoluteLocationPath
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addStep(Step step)
Add the next step to this location path.java.util.List
getSteps()
Returns the ordered list of steps in this location path.boolean
isAbsolute()
Returns true if this is an absolute location path; false if it isn't.
-
-
-
Method Detail
-
addStep
void addStep(Step step)
Add the next step to this location path.- Parameters:
step
-
-
getSteps
java.util.List getSteps()
Returns the ordered list of steps in this location path. This list may be live.- Returns:
- the ordered list of steps in this location path
-
isAbsolute
boolean isAbsolute()
Returns true if this is an absolute location path; false if it isn't. Absolute location paths all begiune with/
or//
.- Returns:
- true if this is an absol;ute location path; false if it isn't
-
-