org.jaxen.pattern
public class LocationPathPattern extends Pattern
LocationPathPattern matches any node using a
location path such as A/B/C.
The parentPattern and ancestorPattern properties are used to
chain location path patterns together
Version: $Revision: 1.15 $
| Field Summary | |
|---|---|
| boolean | absolute Whether this lcoation path is absolute or not |
| Pattern | ancestorPattern Patterns matching one of my ancestors |
| List | filters The filters to match against |
| NodeTest | nodeTest The node test to perform on this step of the path |
| Pattern | parentPattern Patterns matching my parent node |
| Constructor Summary | |
|---|---|
| LocationPathPattern() | |
| LocationPathPattern(NodeTest nodeTest) | |
| Method Summary | |
|---|---|
| void | addFilter(FilterExpr filter) Adds a filter to this pattern |
| short | getMatchType() |
| double | getPriority() |
| String | getText() |
| boolean | hasAnyNodeTest() |
| boolean | isAbsolute() |
| boolean | matches(Object node, Context context) |
| void | setAbsolute(boolean absolute) |
| void | setAncestorPattern(Pattern ancestorPattern) Adds a pattern for an ancestor of the current
context node used in this pattern. |
| void | setNodeTest(NodeTest nodeTest) Allows the NodeTest to be set |
| void | setParentPattern(Pattern parentPattern) Adds a pattern for the parent of the current
context node used in this pattern. |
| Pattern | simplify() |
| String | toString() |
Returns: true if the pattern matches the given node