public final class KeyPattern extends Pattern
originalText, staticContext| Constructor and Description |
|---|
KeyPattern(int namecode,
java.lang.String value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(NodeInfo e,
Context c)
Determine whether this Pattern matches the given Node.
|
getDefaultPriority, getFingerprint, getLineNumber, getNodeType, getStaticContext, getSystemId, make, setOriginalText, setStaticContext, simplify, toStringpublic KeyPattern(int namecode,
java.lang.String value)
name - the name of the keyvalue - the value of the keypublic boolean matches(NodeInfo e, Context c) throws XPathException
matches in class Patterne - The NodeInfo representing the Element or other node to be tested against the Patternc - The context in which the match is to take place. Only relevant if the pattern
uses variables.XPathException