com.novell.xml.xpath
Class AxisDescendantOrSelf

java.lang.Object
  extended bycom.novell.xml.xpath.Axis
      extended bycom.novell.xml.xpath.AxisElement
          extended bycom.novell.xml.xpath.AxisDescendant
              extended bycom.novell.xml.xpath.AxisDescendantOrSelf
All Implemented Interfaces:
ContextNodeList

public class AxisDescendantOrSelf
extends AxisDescendant

class representing XPath "descendant-or-self" axis


Nested Class Summary
 
Nested classes inherited from class com.novell.xml.xpath.AxisDescendant
AxisDescendant.Mark
 
Nested classes inherited from class com.novell.xml.xpath.Axis
Axis.AxisMark
 
Field Summary
 
Fields inherited from class com.novell.xml.xpath.AxisDescendant
child
 
Fields inherited from class com.novell.xml.xpath.Axis
stripper
 
Fields inherited from interface com.novell.xml.xpath.ContextNodeList
DOCUMENT_ORDER, REVERSE_DOCUMENT_ORDER, UNKNOWN_ORDER
 
Constructor Summary
AxisDescendantOrSelf()
           
 
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.
 
Methods inherited from class com.novell.xml.xpath.AxisDescendant
done, getMark, returnToMark
 
Methods inherited from class com.novell.xml.xpath.AxisElement
principalNodeType
 
Methods inherited from class com.novell.xml.xpath.Axis
count, getContextNode, incPosition, init, order, position, setup, stripNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AxisDescendantOrSelf

public AxisDescendantOrSelf()
Method Detail

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.