com.novell.xml.xpath
Class AxisFollowing
java.lang.Object
com.novell.xml.xpath.Axis
com.novell.xml.xpath.AxisElement
com.novell.xml.xpath.AxisFollowing
- All Implemented Interfaces:
- ContextNodeList
- public class AxisFollowing
- extends AxisElement
class representing XPath "following" axis
Fields inherited from class com.novell.xml.xpath.Axis |
stripper |
Method Summary |
void |
done()
stop referencing resources that are no longer needed |
Node |
first()
Return the first member of the axis in axis-defined order.
|
ContextListMark |
getMark()
Return a marker to current position in this axis
This marker can be used later in a call to returnToMark() to
return to the marked position |
Node |
next()
Return subsequent nodes in the axis.
|
Node |
returnToMark(ContextListMark mark)
Go to a position in a ContextNodeList previously marked
with getMark() |
String |
toString()
Provide a readable description of the axis for debugging. |
AxisFollowing
public AxisFollowing()
toString
public String toString()
- Provide a readable description of the axis for debugging.
- Specified by:
toString
in class Axis
- Returns:
- String representation of the axis (the axis name)
done
public void done()
- stop referencing resources that are no longer needed
- Overrides:
done
in class Axis
first
public Node first()
- Return the first member of the axis in axis-defined order.
setup() must be called first
- 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.
- Returns:
- The next node in the axis, or null if there are no more nodes
in the axis.
getMark
public ContextListMark getMark()
- Return a marker to current position in this axis
This marker can be used later in a call to returnToMark() to
return to the marked position
- Returns:
- an opaque marker
returnToMark
public Node returnToMark(ContextListMark mark)
- Go to a position in a ContextNodeList previously marked
with getMark()
- Parameters:
mark
- mark returned from getMark()
- Returns:
- The node at the mark