| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dom4j.rule.pattern.NodeTypePattern
 NodeTypePattern implements a Pattern which matches any node of
 the given node type.
 
| Field Summary | |
| static NodeTypePattern | ANY_ATTRIBUTEA pattern which matches any Attribute node | 
| static NodeTypePattern | ANY_COMMENTA pattern which matches any Comment node | 
| static NodeTypePattern | ANY_DOCUMENTA pattern which matches any Document node | 
| static NodeTypePattern | ANY_ELEMENTA pattern which matches any Element node | 
| static NodeTypePattern | ANY_PROCESSING_INSTRUCTIONA pattern which matches any ProcessingInstruction node | 
| static NodeTypePattern | ANY_TEXTA pattern which matches any Text node | 
| Fields inherited from interface org.dom4j.rule.Pattern | 
| ANY_NODE, DEFAULT_PRIORITY, NONE, NUMBER_OF_TYPES | 
| Constructor Summary | |
| NodeTypePattern(short nodeType) | |
| Method Summary | |
|  String | getMatchesNodeName()For patterns which only match an ATTRIBUTE_NODE or an ELEMENT_NODE then this pattern may return the name of the element or attribute it matches. | 
|  short | getMatchType()DOCUMENT ME! | 
|  double | getPriority()Returns the default resolution policy of the pattern according to the XSLT conflict resolution spec . | 
|  Pattern[] | getUnionPatterns()If this pattern is a union pattern then this method should return an array of patterns which describe the union pattern, which should contain more than one pattern. | 
|  boolean | matches(Node node)DOCUMENT ME! | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final NodeTypePattern ANY_ATTRIBUTE
public static final NodeTypePattern ANY_COMMENT
public static final NodeTypePattern ANY_DOCUMENT
public static final NodeTypePattern ANY_ELEMENT
public static final NodeTypePattern ANY_PROCESSING_INSTRUCTION
public static final NodeTypePattern ANY_TEXT
| Constructor Detail | 
public NodeTypePattern(short nodeType)
| Method Detail | 
public boolean matches(Node node)
Pattern
matches in interface Patternnode - DOCUMENT ME!
public double getPriority()
Pattern
getPriority in interface Patternpublic Pattern[] getUnionPatterns()
Pattern
getUnionPatterns in interface Patternpublic short getMatchType()
Pattern
getMatchType in interface Patternpublic String getMatchesNodeName()
Pattern
getMatchesNodeName in interface Pattern| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||