com.novell.xml.xpath
Class AxisAncestorOrSelf
java.lang.Object
com.novell.xml.xpath.Axis
com.novell.xml.xpath.AxisElement
com.novell.xml.xpath.AxisAncestor
com.novell.xml.xpath.AxisAncestorOrSelf
- All Implemented Interfaces:
- ContextNodeList
- public class AxisAncestorOrSelf
- extends AxisAncestor
class representing XPath "ancestor-or-self" axis
Fields inherited from class com.novell.xml.xpath.Axis |
stripper |
Method Summary |
Node |
first()
Return the first member of the axis in axis-defined order.
|
String |
toString()
Provide a readable description of the axis for debugging. |
AxisAncestorOrSelf
public AxisAncestorOrSelf()
toString
public String toString()
- Provide a readable description of the axis for debugging.
- Overrides:
toString
in class AxisAncestor
- Returns:
- String representation of the axis (the axis name)
first
public Node first()
- Return the first member of the axis in axis-defined order.
setup() must be called first
- Specified by:
first
in interface ContextNodeList
- Overrides:
first
in class AxisAncestor
- Returns:
- The first node in the axis, or null if the axis is empty.