com.icl.saxon.pattern
public class NameTest extends NodeTest
| Constructor Summary | |
|---|---|
| NameTest(short nodeType, int nameCode) | |
| NameTest(NodeInfo node)
Create a NameTest for nodes of the same type and name as a given node | |
| Method Summary | |
|---|---|
| double | getDefaultPriority()
Determine the default priority of this node test when used on its own as a Pattern |
| int | getFingerprint()
Get the fingerprint required |
| 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 nameCode)
Test whether this node test is satisfied by a given node |
Returns: the type of node matched by this pattern. e.g. NodeInfo.ELEMENT or NodeInfo.TEXT
Parameters: nodeType The type of node to be matched fingerprint identifies the expanded name of the node to be matched