| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.icl.saxon.pattern.Pattern
com.icl.saxon.pattern.NodeTest
com.icl.saxon.pattern.NameTest
NodeTest is an interface that enables a test of whether a node has a particular name and type. A NameTest matches the node type and the namespace URI and the local name.
| Field Summary | 
| Fields inherited from class com.icl.saxon.pattern.Pattern | 
| originalText, staticContext | 
| Constructor Summary | |
| NameTest(NodeInfo node)Create a NameTest for nodes of the same type and name as a given node | |
| NameTest(short nodeType,
         int nameCode) | |
| 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 | 
| Methods inherited from class com.icl.saxon.pattern.NodeTest | 
| matches | 
| Methods inherited from class com.icl.saxon.pattern.Pattern | 
| getLineNumber, getStaticContext, getSystemId, make, setOriginalText, setStaticContext, simplify, toString | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public NameTest(short nodeType,
                int nameCode)
public NameTest(NodeInfo node)
| Method Detail | 
public final boolean matches(NodeInfo node)
matches in class NodeTest
public boolean matches(short nodeType,
                       int nameCode)
matches in class NodeTestnodeType - The type of node to be matchednameCode - identifies the expanded name of the node to be matched.
 The value should be -1 for a node with no name.public final double getDefaultPriority()
getDefaultPriority in class Patternpublic int getFingerprint()
getFingerprint in class Patternpublic short getNodeType()
getNodeType in class Pattern| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||