Save This Page
Home » dom4j-1.6.1 » org.dom4j.rule.pattern » [javadoc | source]
org.dom4j.rule.pattern
public class: DefaultPattern [javadoc | source]
java.lang.Object
   org.dom4j.rule.pattern.DefaultPattern

All Implemented Interfaces:
    Pattern

DefaultPattern a default implementation of Pattern which can take any XPath implementation or NodeFilter for defining the pattern. WARNING this implementation causes a worst case, brute force XSLT rule evaluation to be performed. Wherever possible the methods #getPriority , #getMatchType and #getMatchesNodeName should be overloaded to allow more rule filtering to occur.

Constructor:
 public DefaultPattern(NodeFilter filter) 
Method from org.dom4j.rule.pattern.DefaultPattern Summary:
getMatchType,   getMatchesNodeName,   getPriority,   getUnionPatterns,   matches
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.rule.pattern.DefaultPattern Detail:
 public short getMatchType() 
 public String getMatchesNodeName() 
 public double getPriority() 
 public Pattern[] getUnionPatterns() 
 public boolean matches(Node node)