|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.xpath.Axis
This class represents a generic XPath axis. Derived classes must override first() and next() to provide navigation among the nodes specified by the particular axis.
Basis
Nested Class Summary | |
protected class |
Axis.AxisMark
|
Field Summary | |
protected WhitespaceStripper |
stripper
|
Fields inherited from interface com.novell.xml.xpath.ContextNodeList |
DOCUMENT_ORDER, REVERSE_DOCUMENT_ORDER, UNKNOWN_ORDER |
Constructor Summary | |
protected |
Axis()
|
Method Summary | |
int |
count()
Return the number of nodes in the axis. |
void |
done()
stop referencing resources that are no longer needed |
protected Node |
getContextNode()
Access to context node setup by init() |
protected Node |
incPosition(Node node)
Increment the "last node" position. |
protected void |
init()
Initialization of common code. |
int |
order()
Return order in which nodes are returned from first()-next() NOTE: derived classes that are in reverse document order MUST override this |
int |
position()
Return the position in the axis of the last node returned by first() or next(). |
abstract int |
principalNodeType()
Return the principal node type for the axis. |
void |
setup(Node contextNode,
WhitespaceStripper stripper)
Initialize an axis instance for a context node |
protected boolean |
stripNode(Node node)
Return whether an arbitrary node should be stripped |
abstract String |
toString()
Provide a readable description of the axis for debugging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.novell.xml.xpath.ContextNodeList |
first, getMark, next, returnToMark |
Field Detail |
protected WhitespaceStripper stripper
Constructor Detail |
protected Axis()
Method Detail |
public void setup(Node contextNode, WhitespaceStripper stripper)
contextNode
- the context nodestripper
- The WhitespaceStripper implementation for
stripping whitespace nodespublic void done()
public abstract int principalNodeType()
public abstract String toString()
public int count() throws XPathEvaluationException
count
in interface ContextNodeList
XPathEvaluationException
public int position()
position
in interface ContextNodeList
public int order()
order
in interface ContextNodeList
protected void init()
protected Node incPosition(Node node)
node
- Node to be returned from first() or next() (may be null)
protected Node getContextNode()
protected boolean stripNode(Node node)
node
- The node to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |