NodeTypePattern implements a Pattern which matches any node of
the given node type.
| Modifier and Type | Field and Description |
|---|---|
| public static final NodeTypePattern | ANY_ATTRIBUTE
A pattern which matches any Attribute node |
| public static final NodeTypePattern | ANY_COMMENT
A pattern which matches any Comment node |
| public static final NodeTypePattern | ANY_DOCUMENT
A pattern which matches any Document node |
| public static final NodeTypePattern | ANY_ELEMENT
A pattern which matches any Element node |
| public static final NodeTypePattern | ANY_PROCESSING_INSTRUCTION
A pattern which matches any ProcessingInstruction node |
| public static final NodeTypePattern | ANY_TEXT
A pattern which matches any Text node |
| private short |
| 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 |
| ANY_ATTRIBUTE | back to summary |
|---|---|
| public static final NodeTypePattern ANY_ATTRIBUTE A pattern which matches any Attribute node | |
| ANY_COMMENT | back to summary |
|---|---|
| public static final NodeTypePattern ANY_COMMENT A pattern which matches any Comment node | |
| ANY_DOCUMENT | back to summary |
|---|---|
| public static final NodeTypePattern ANY_DOCUMENT A pattern which matches any Document node | |
| ANY_ELEMENT | back to summary |
|---|---|
| public static final NodeTypePattern ANY_ELEMENT A pattern which matches any Element node | |
| ANY_PROCESSING_INSTRUCTION | back to summary |
|---|---|
| public static final NodeTypePattern ANY_PROCESSING_INSTRUCTION A pattern which matches any ProcessingInstruction node | |
| ANY_TEXT | back to summary |
|---|---|
| public static final NodeTypePattern ANY_TEXT A pattern which matches any Text node | |
| nodeType | back to summary |
|---|---|
| private short nodeType | |
| NodeTypePattern | back to summary |
|---|---|
| public NodeTypePattern(short nodeType) | |
| 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!
| |