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 |
---|---|
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() |
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)
matches returns true if the given node matches
the filter condition. |
static final short ANY_NODE
static final short NONE
static final short NUMBER_OF_TYPES
static final double DEFAULT_PRIORITY
boolean matches(Node node)
NodeFilter
matches
returns true if the given node matches
the filter condition.
matches
in interface NodeFilter
double getPriority()
Pattern[] getUnionPatterns()
short getMatchType()
String getMatchesNodeName()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses