|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xpath.axis.Axis
Axis is the base class for all axis implementations. Every concrete axis is a singleton class with exactly one instance.
| Constructor Summary | |
protected |
Axis(String name,
boolean isForwardAxis,
boolean isDistinctAxis)
Create the axis. |
| Method Summary | |
XPathNode |
getFirstNode(XPathNode contextNode,
NodeTest nodeTest)
Get the first node of the axis, which matches the nodeTest or null if no match is found. |
int |
getMaxResultSize(NodeTest test)
Return the maximum result size or 0 if not known in advance. |
int |
getMinResultSize(NodeTest test)
Return the minimum result size or 0 if not known in advance. |
abstract ModelWalker |
getModelWalker()
Return a ModelWalker for the axis nodes in document order. |
String |
getName()
Return the axis name. |
void |
getNodes(XPathNode contextNode,
NodeTest nodeTest,
XMutableNodeSet result)
Get the nodes of the axis, filtered by the NodeTest. |
int |
getPrincipalNodeType()
Return the principal nodes type of the axis. |
ModelWalker |
getProximityModelWalker()
Return a ModelWalker for the axis nodes in document order, if the axis is a forward axis or in reverse order if the axis is a reverse axis. |
boolean |
isDistinctAxis()
Return if the axis is a "distinct" axis, i.e. |
boolean |
isForwardAxis()
Return if the axis is a forward axis. |
String |
toString()
Return a string representation of the axis. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected Axis(String name,
boolean isForwardAxis,
boolean isDistinctAxis)
name - the axis nameisForwardAxis - true if the axis is a forward axisisDistinctAxis - true if the axis is a distinct axis| Method Detail |
public boolean isForwardAxis()
public boolean isDistinctAxis()
public int getMaxResultSize(NodeTest test)
public int getMinResultSize(NodeTest test)
public int getPrincipalNodeType()
public final String getName()
public void getNodes(XPathNode contextNode,
NodeTest nodeTest,
XMutableNodeSet result)
contextNode - the context nodenodeTest - the node testresult - a nodeset for the matching nodes.
public XPathNode getFirstNode(XPathNode contextNode,
NodeTest nodeTest)
public abstract ModelWalker getModelWalker()
public ModelWalker getProximityModelWalker()
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||