public class UnionPattern extends Pattern
UnionPattern represents a union pattern.
| Modifier and Type | Field and Description |
|---|---|
private Pattern |
lhs
Deprecated.
|
private java.lang.String |
matchesNodeName
Deprecated.
|
private short |
nodeType
Deprecated.
|
private Pattern |
rhs
Deprecated.
|
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, NO_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE| Constructor and Description |
|---|
UnionPattern()
Deprecated.
|
UnionPattern(Pattern lhs,
Pattern rhs)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Pattern |
getLHS()
Deprecated.
|
java.lang.String |
getMatchesNodeName()
Deprecated.
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()
Deprecated.
Returns the type of node the pattern matches.
|
Pattern |
getRHS()
Deprecated.
|
java.lang.String |
getText()
Deprecated.
Returns a textual representation of this pattern
|
Pattern[] |
getUnionPatterns()
Deprecated.
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.
|
private void |
init()
Deprecated.
|
boolean |
matches(java.lang.Object node,
Context context)
Deprecated.
|
void |
setLHS(Pattern lhs)
Deprecated.
|
void |
setRHS(Pattern rhs)
Deprecated.
|
Pattern |
simplify()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
getPriorityprivate Pattern lhs
private Pattern rhs
private short nodeType
private java.lang.String matchesNodeName
public Pattern getLHS()
public void setLHS(Pattern lhs)
public Pattern getRHS()
public void setRHS(Pattern rhs)
public boolean matches(java.lang.Object node,
Context context)
throws JaxenException
matches in class Patternnode - ????context - ????JaxenException - if ????public Pattern[] getUnionPatterns()
PatterngetUnionPatterns in class Patternpublic short getMatchType()
PatterngetMatchType in class PatternANY_NODE unless overriddenpublic java.lang.String getMatchesNodeName()
PatterngetMatchesNodeName in class Patternpublic java.lang.String getText()
Patternpublic java.lang.String toString()
toString in class java.lang.Objectprivate void init()