com.icl.saxon.pattern
Class NamespaceTest
public final class NamespaceTest
NodeTest is an interface that enables a test of whether a node has a particular
name and type. A NamespaceTest matches the node type and the namespace URI.
double | getDefaultPriority() - Determine the default priority of this node test when used on its own as a Pattern
|
short | getNodeType() - Determine the types of nodes to which this pattern applies.
|
boolean | matches(NodeInfo node) - Test whether this node test is satisfied by a given node
|
boolean | matches(short nodeType, int fingerprint) - Test whether this node test is satisfied by a given node
|
getDefaultPriority , getFingerprint , getLineNumber , getNodeType , getStaticContext , getSystemId , make , matches , setOriginalText , setStaticContext , simplify , toString |
NamespaceTest
public NamespaceTest(NamePool pool,
short nodeType,
short uriCode)
getDefaultPriority
public final double getDefaultPriority()
Determine the default priority of this node test when used on its own as a Pattern
- getDefaultPriority in interface Pattern
getNodeType
public short getNodeType()
Determine the types of nodes to which this pattern applies. Used for optimisation.
For patterns that match nodes of several types, return NodeInfo.NODE
- getNodeType in interface Pattern
- the type of node matched by this pattern. e.g. NodeInfo.ELEMENT or NodeInfo.TEXT
matches
public final boolean matches(NodeInfo node)
Test whether this node test is satisfied by a given node
- matches in interface NodeTest
matches
public boolean matches(short nodeType,
int fingerprint)
Test whether this node test is satisfied by a given node
- matches in interface NodeTest
nodeType
- The type of node to be matchedfingerprint
- identifies the expanded name of the node to be matched