org.dom4j.rule
public interface Pattern extends NodeFilter
Pattern
defines the behaviour for pattern in the XSLT
processing model.
Version: $Revision: 1.6 $
Field Summary | |
---|---|
short | ANY_NODE Matches any node |
double | DEFAULT_PRIORITY
According to the spec
we should return 0.5 if we cannot determine the priority |
short | NONE Matches no nodes |
short | NUMBER_OF_TYPES Count of the number of node types |
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!
|
Returns: the name of the element or attribute this pattern matches or null if this pattern matches any or more than one name.
Returns: the type of node the pattern matches which by default should return ANY_NODE if it can match any kind of node.
Returns: DOCUMENT ME!
Returns: an array of the patterns which make up this union pattern or null if this pattern is not a union pattern
Parameters: node DOCUMENT ME!
Returns: true if the pattern matches the given DOM4J node.