public class NodeTest extends Object
| Constructor and Description |
|---|
NodeTest(ValueType type) |
NodeTest(ValueType type,
QName name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equivalent(Object other) |
int |
equivHash() |
QName |
getQName() |
ValueType |
getType() |
boolean |
isWild() |
boolean |
propGreaterEqual(NodeTest other) |
String |
toString() |
void |
toString(StringBuilder buf) |
public NodeTest(ValueType type, QName name)
type - the type of test: one of DOCUMENT, NODE, ELEMENT,
ATTRIBUTE, TEXT, PROCESSING_INSTRUCTION or COMMENT.name - the name of the node that the test matches, or null
if any node of the given type matches.
The local * name may be "*", indicating a match to any local name.
The prefix may be "*" to indicate any namespace matches (in which case the namespace uri is ignored and should be null).
The namespace uri is preserved for use in query generation, however it is the caller's responsibility to ensure that namespace prefix bindings are consistent within an expression tree, and with the surrounding environment.
For node tests without names (node(), comment(), text()), the name is ignored and should be null. For node tests without namespaces (processing-instruction()), the namespace uri and prefix are both ignored and should be null.
IllegalArgumentException - if the type is not a node type,NullPointerException - if the type is nullpublic NodeTest(ValueType type)
public ValueType getType()
public QName getQName()
public boolean isWild()
public void toString(StringBuilder buf)
public boolean equivalent(Object other)
public boolean propGreaterEqual(NodeTest other)
public int equivHash()
Copyright © 2013. All Rights Reserved.