com.icl.saxon.pattern
Class  KeyPattern
java.lang.Object
  |
  +--com.icl.saxon.pattern.Pattern
        |
        +--com.icl.saxon.pattern.KeyPattern
- public class KeyPattern- extends Pattern
A KeyPattern is a pattern of the form key(keyname, keyvalue)
 
| Constructor Summary | 
| KeyPattern(java.lang.String name,
           java.lang.String value)Constructor
 | 
 
| Method Summary | 
|  boolean | isRelative()Determine if the pattern uses positional filters
 | 
|  boolean | matches(NodeInfo e,
        Context c)Determine whether this Pattern matches the given Node.
 | 
|  java.lang.String | toString()Return pattern as a string (for diagnostic output)
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
KeyPattern
public KeyPattern(java.lang.String name,
                  java.lang.String value)
- Constructor- 
- Parameters:
- name- the name of the key
- value- the value of the key
 
matches
public boolean matches(NodeInfo e,
                       Context c)
                throws org.xml.sax.SAXException
- Determine whether this Pattern matches the given Node.
 Note that it might match different nodes in different source documents!- 
- Overrides:
- matchesin class- Pattern
 
- 
- Parameters:
- e- The NodeInfo representing the Element or other node to be tested against the Pattern
- Returns:
- true if the node matches the Pattern, false otherwise
 
isRelative
public boolean isRelative()
- Determine if the pattern uses positional filters- 
- Overrides:
- isRelativein class- Pattern
 
- 
- Returns:
- false (always)
 
toString
public java.lang.String toString()
- Return pattern as a string (for diagnostic output)- 
- Overrides:
- toStringin class- java.lang.Object