public interface Pattern extends NodeFilter
Pattern
defines the behaviour for pattern in the XSLT
processing model.
Modifier and Type | Field and Description |
---|---|
static short |
ANY_NODE
Matches any node
|
static double |
DEFAULT_PRIORITY
According to the spec
we should return 0.5 if we cannot determine the priority
|
static short |
NONE
Matches no nodes
|
static short |
NUMBER_OF_TYPES
Count of the number of node types
|
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!
|
static final short ANY_NODE
static final short NONE
static final short NUMBER_OF_TYPES
static final double DEFAULT_PRIORITY
boolean matches(Node node)
matches
in interface NodeFilter
node
- DOCUMENT ME!double getPriority()
Pattern[] getUnionPatterns()
short getMatchType()
java.lang.String getMatchesNodeName()