com.novell.xml.xpath
Class AxisAncestorOrSelf

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

public class AxisAncestorOrSelf
extends AxisAncestor

class representing XPath "ancestor-or-self" axis


Nested Class Summary
 
Nested classes inherited from class com.novell.xml.xpath.AxisAncestor
AxisAncestor.Mark
 
Nested classes inherited from class com.novell.xml.xpath.Axis
Axis.AxisMark
 
Field Summary
 
Fields inherited from class com.novell.xml.xpath.AxisAncestor
ancestor
 
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
AxisAncestorOrSelf()
           
 
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.
 
Methods inherited from class com.novell.xml.xpath.AxisAncestor
done, getMark, next, order, returnToMark
 
Methods inherited from class com.novell.xml.xpath.AxisElement
principalNodeType
 
Methods inherited from class com.novell.xml.xpath.Axis
count, getContextNode, incPosition, init, position, setup, stripNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AxisAncestorOrSelf

public AxisAncestorOrSelf()
Method Detail

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.