com.novell.xml.xpath
Class AxisDescendantOrSelf
java.lang.Object
com.novell.xml.xpath.Axis
com.novell.xml.xpath.AxisElement
com.novell.xml.xpath.AxisDescendant
com.novell.xml.xpath.AxisDescendantOrSelf
- All Implemented Interfaces:
- ContextNodeList
- public class AxisDescendantOrSelf
- extends AxisDescendant
class representing XPath "descendant-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.
|
Node |
next()
Return subsequent nodes in the axis.
|
String |
toString()
Provide a readable description of the axis for debugging. |
AxisDescendantOrSelf
public AxisDescendantOrSelf()
toString
public String toString()
- Provide a readable description of the axis for debugging.
- Overrides:
toString
in class AxisDescendant
- 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 AxisDescendant
- Returns:
- The first node in the axis, or null if the axis is empty.
next
public Node next()
- Return subsequent nodes in the axis.
first() must be called before next() to setup the context.
The nodes are returned in axis dependent order.
- Specified by:
next
in interface ContextNodeList
- Overrides:
next
in class AxisDescendant
- Returns:
- The next node in the axis, or null if there are no more nodes
in the axis.