DefaultPattern a default implementation of Pattern which can
take any XPath implementation or NodeFilter for defining the pattern
Warning
this implementation causes a worst case, brute force XSLT
rule evaluation to be performed. Wherever possible the methods getPriority, getMatchTypeand getMatchesNodeNameshould
be overloaded to allow more rule filtering to occur.
| Modifier and Type | Field and Description |
|---|---|
| private NodeFilter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getMatchesNodeName()
Implements org. |
| public short | |
| public double | getPriority()
Implements org. |
| public Pattern[] | getUnionPatterns()
Implements org. |
| public boolean |
| filter | back to summary |
|---|---|
| private NodeFilter filter | |
| DefaultPattern | back to summary |
|---|---|
| public DefaultPattern(NodeFilter filter) | |
| getMatchesNodeName | back to summary |
|---|---|
| public String getMatchesNodeName() Implements org. Doc from org. 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() Implements org. Doc from org. DOCUMENT ME!
| |
| getPriority | back to summary |
|---|---|
| public double getPriority() Implements org. Doc from org. Returns the default resolution policy of the pattern according to the XSLT conflict resolution spec .
| |
| getUnionPatterns | back to summary |
|---|---|
| public Pattern[] getUnionPatterns() Implements org. Doc from org. 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) Implements org. Doc from org. DOCUMENT ME!
| |