1 7 8 package org.dom4j.rule.pattern; 9 10 import org.dom4j.Node; 11 import org.dom4j.NodeFilter; 12 import org.dom4j.rule.Pattern; 13 14 27 public class DefaultPattern implements Pattern { 28 private NodeFilter filter; 29 30 public DefaultPattern(NodeFilter filter) { 31 this.filter = filter; 32 } 33 34 public boolean matches(Node node) { 35 return filter.matches(node); 36 } 37 38 public double getPriority() { 39 return Pattern.DEFAULT_PRIORITY; 40 } 41 42 public Pattern[] getUnionPatterns() { 43 return null; 44 } 45 46 public short getMatchType() { 47 return ANY_NODE; 48 } 49 50 public String getMatchesNodeName() { 51 return null; 52 } 53 } 54 55 91 | Popular Tags |