jd.xml.xslt.pattern
Class KeyPattern

java.lang.Object
  extended byjd.xml.xslt.pattern.Pattern
      extended byjd.xml.xslt.pattern.KeyPattern

public class KeyPattern
extends Pattern

KeyPattern represents the key pattern.


Constructor Summary
KeyPattern(String keyName, String keyValue)
          Create a KeyPattern.
 
Method Summary
 void accept(PatternVisitor visitor)
          Accept a PatternVisitor.
 boolean match(XPathContext context)
          Test if the context node matches the pattern.
 
Methods inherited from class jd.xml.xslt.pattern.Pattern
calculatePriority, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyPattern

public KeyPattern(String keyName,
                  String keyValue)
Create a KeyPattern.

Method Detail

match

public boolean match(XPathContext context)
Test if the context node matches the pattern.

Specified by:
match in class Pattern

accept

public void accept(PatternVisitor visitor)
Accept a PatternVisitor.

Specified by:
accept in class Pattern