|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.axis.NodeTest
A base class for node tests.
Field Summary | |
static int |
EXACT
|
static int |
NO
|
static int |
WILDCARD
|
Constructor Summary | |
NodeTest()
|
Method Summary | |
abstract void |
accept(NodeTestVisitor visitor)
Accept a NodeTestVisitor. |
abstract boolean |
accept(XPathNode node,
int principalType)
Test if a node is accepted by this NodeTest. |
abstract double |
calculatePriority()
Calculate the priority of this node test. |
abstract int |
matchNames()
Return how the NodeTest accepts regarding their names. |
abstract String |
toString()
Return a string representation of the NodeTest. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NO
public static final int WILDCARD
public static final int EXACT
Constructor Detail |
public NodeTest()
Method Detail |
public abstract boolean accept(XPathNode node, int principalType)
node
- the tested nodeprincipalType
- the principal node type as determined by the associated axispublic abstract double calculatePriority()
public abstract int matchNames()
NO
,
WILDCARD
,
EXACT
public abstract void accept(NodeTestVisitor visitor)
public abstract String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |