public class NodeTypePattern extends java.lang.Object implements Pattern
NodeTypePattern
implements a Pattern which matches any node of
the given node type.
Modifier and Type | Field and Description |
---|---|
static NodeTypePattern |
ANY_ATTRIBUTE
A pattern which matches any Attribute node
|
static NodeTypePattern |
ANY_COMMENT
A pattern which matches any Comment node
|
static NodeTypePattern |
ANY_DOCUMENT
A pattern which matches any Document node
|
static NodeTypePattern |
ANY_ELEMENT
A pattern which matches any Element node
|
static NodeTypePattern |
ANY_PROCESSING_INSTRUCTION
A pattern which matches any ProcessingInstruction node
|
static NodeTypePattern |
ANY_TEXT
A pattern which matches any Text node
|
ANY_NODE, DEFAULT_PRIORITY, NONE, NUMBER_OF_TYPES
Constructor and Description |
---|
NodeTypePattern(short nodeType) |
Modifier and Type | Method and Description |
---|---|
java.lang.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!
|
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
public boolean matches(Node node)
Pattern
matches
in interface NodeFilter
matches
in interface Pattern
node
- DOCUMENT ME!public double getPriority()
Pattern
getPriority
in interface Pattern
public Pattern[] getUnionPatterns()
Pattern
getUnionPatterns
in interface Pattern
public short getMatchType()
Pattern
getMatchType
in interface Pattern
public java.lang.String getMatchesNodeName()
Pattern
getMatchesNodeName
in interface Pattern