Package com.globalmentor.xml.xpath
Class AxisStep
- java.lang.Object
-
- com.globalmentor.xml.xpath.AxisStep
-
-
Constructor Summary
Constructors Constructor Description AxisStep(java.lang.String newAxis, java.lang.String newNodeTest)
Constructs a new location step with the specified axis and node test.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAxis()
java.lang.String
getNodeTest()
java.lang.String
toString()
-
-
-
Constructor Detail
-
AxisStep
public AxisStep(java.lang.String newAxis, java.lang.String newNodeTest)
Constructs a new location step with the specified axis and node test.- Parameters:
newAxis
- The relationship between this step and the context node.newNodeTest
- The node type selected by the location step.
-
-
Method Detail
-
getAxis
public java.lang.String getAxis()
- Returns:
- The axis of the location step.
-
getNodeTest
public java.lang.String getNodeTest()
- Returns:
- The node type selected by the location step.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the location step in the form "axis::nodeTest", or "root" for the special location step containing "/" as an axis.
-
-