Pattern defines the behaviour for pattern in the XSLT
processing model.
| Modifier and Type | Field and Description |
|---|---|
| public static final short | ANY_NODE
Matches any node |
| public static final double | DEFAULT_PRIORITY
According to the spec we should return 0.5 if we cannot determine the priority |
| public static final short | NONE
Matches no nodes |
| public static final short | NUMBER_OF_TYPES
Count of the number of node types |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the name of the element or attribute this pattern matches or null if this pattern matches any or more than one name.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. |
| public short | Returns: the type of node the pattern matches which by default should return ANY_NODE if it can match any kind of node.DOCUMENT ME! |
| public double | Returns: DOCUMENT ME!Returns the default resolution policy of the pattern according to the XSLT conflict resolution spec . |
| public Pattern[] | Returns: an array of the patterns which make up this union pattern or null if this pattern is not a union patternIf 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. |
| public boolean | Returns: true if the pattern matches the given DOM4J node.DOCUMENT ME! node)Redeclares org. |
| ANY_NODE | back to summary |
|---|---|
| public static final short ANY_NODE Matches any node | |
| DEFAULT_PRIORITY | back to summary |
|---|---|
| public static final double DEFAULT_PRIORITY According to the spec we should return 0.5 if we cannot determine the priority | |
| NONE | back to summary |
|---|---|
| public static final short NONE Matches no nodes | |
| NUMBER_OF_TYPES | back to summary |
|---|---|
| public static final short NUMBER_OF_TYPES Count of the number of node types | |
| getMatchesNodeName | back to summary |
|---|---|
| public 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. This allows a more efficient rule matching algorithm to be performed, rather than a brute force approach of evaluating every pattern for a given Node.
| |
| getMatchType | back to summary |
|---|---|
| public short getMatchType() DOCUMENT ME!
| |
| getPriority | back to summary |
|---|---|
| public double getPriority() Returns the default resolution policy of the pattern according to the XSLT conflict resolution spec .
| |
| getUnionPatterns | back to summary |
|---|---|
| public 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. Otherwise this method should return null.
| |
| matches | back to summary |
|---|---|
| public boolean matches(Node node) Redeclares org. DOCUMENT ME!
| |