jd.xml.xslt.pattern
Class IdPattern

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

public class IdPattern
extends Pattern

IdPattern represents the Id pattern.


Constructor Summary
IdPattern(String id)
          Create a IdPattern.
 
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

IdPattern

public IdPattern(String id)
Create a IdPattern.

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