|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjd.xml.xpath.axis.NodeTest
jd.xml.xpath.axis.NodeTestUnion
A NodeTest implementation which accepts a node if it is accepted by at least one of two NodeTests.
| Field Summary |
| Fields inherited from class jd.xml.xpath.axis.NodeTest |
EXACT, NO, WILDCARD |
| Constructor Summary | |
NodeTestUnion(NodeTest test1,
NodeTest test2)
|
|
| Method Summary | |
void |
accept(NodeTestVisitor visitor)
Accept a NodeTestVisitor. |
boolean |
accept(XPathNode node,
int principalType)
Return true if one of the tests accept the node. |
double |
calculatePriority()
Throws an InternalError since this class is not used by patterns |
int |
matchNames()
Return how the NodeTest accepts regarding their names. |
String |
toString()
Return a string representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NodeTestUnion(NodeTest test1,
NodeTest test2)
| Method Detail |
public boolean accept(XPathNode node,
int principalType)
accept in class NodeTestnode - the tested nodeprincipalType - the principal node type as determined by the associated axispublic double calculatePriority()
calculatePriority in class NodeTestpublic int matchNames()
NodeTest
matchNames in class NodeTestNodeTest.NO,
NodeTest.WILDCARD,
NodeTest.EXACTpublic void accept(NodeTestVisitor visitor)
accept in class NodeTestpublic String toString()
toString in class NodeTest
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||