Package eu.bandm.tools.paisley.xml
Class XPathPatterns.Path
java.lang.Object
eu.bandm.tools.paisley.xml.XPathPatterns.Path
- All Implemented Interfaces:
XPathPatterns.Operation,Function<Node,XPathPatterns.NodeSet>
- Enclosing class:
XPathPatterns
public static class XPathPatterns.Path
extends Object
implements XPathPatterns.Operation, Function<Node,XPathPatterns.NodeSet>
Representation of an XPath location path.
-
Method Summary
Modifier and TypeMethodDescriptiongetMotif()Returns the motif associated with this navigation operation.step(XPathPatterns.Axis axis, XPathPatterns.Test test, XPathPatterns.Predicate... predicates) Returns a new location path that extends this path with a given axis, node test, and zero or more predicates.toString()
-
Method Details
-
step
public XPathPatterns.Path step(XPathPatterns.Axis axis, XPathPatterns.Test test, XPathPatterns.Predicate... predicates) Returns a new location path that extends this path with a given axis, node test, and zero or more predicates.- Parameters:
axis- the axis to followtest- the node test to performpredicates- the predicates to filter with, in order- Returns:
- an extended path
- Throws:
NullPointerException- ifaxis,test,predicates, or any element ofpredicatesis null
-
apply
- Specified by:
applyin interfaceFunction<Node,XPathPatterns.NodeSet>
-
getMotif
Description copied from interface:XPathPatterns.OperationReturns the motif associated with this navigation operation.- Specified by:
getMotifin interfaceXPathPatterns.Operation- Returns:
- a motif that matches the hole against navigation targets from the given context object.
-
toString
-