Class UnionPattern
java.lang.Object
org.jaxen.pattern.Pattern
org.jaxen.pattern.UnionPattern
Deprecated.
will be removed in Jaxen 2.0
UnionPattern represents a union pattern.
- Version:
- $Revision$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PatternDeprecated.private StringDeprecated.private shortDeprecated.private PatternDeprecated.Fields inherited from class Pattern
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLHS()Deprecated.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.shortDeprecated.Returns the type of node the pattern matches.getRHS()Deprecated.getText()Deprecated.Returns a textual representation of this patternPattern[]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 voidinit()Deprecated.booleanDeprecated.voidDeprecated.voidDeprecated.simplify()Deprecated.toString()Deprecated.Methods inherited from class Pattern
getPriority
-
Field Details
-
lhs
Deprecated. -
rhs
Deprecated. -
nodeType
private short nodeTypeDeprecated. -
matchesNodeName
Deprecated.
-
-
Constructor Details
-
UnionPattern
public UnionPattern()Deprecated. -
UnionPattern
-
-
Method Details
-
getLHS
Deprecated. -
setLHS
Deprecated. -
getRHS
Deprecated. -
setRHS
Deprecated. -
matches
Deprecated.- Specified by:
matchesin classPattern- Parameters:
node- ????context- ????- Returns:
- true if the pattern matches the given node
- Throws:
JaxenException- if ????
-
getUnionPatterns
Deprecated.Description copied from class: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. Otherwise this method should return null.- Overrides:
getUnionPatternsin classPattern- Returns:
- an array of the patterns which make up this union pattern or null if this pattern is not a union pattern
-
getMatchType
public short getMatchType()Deprecated.Description copied from class:PatternReturns the type of node the pattern matches.- Overrides:
getMatchTypein classPattern- Returns:
ANY_NODEunless overridden
-
getMatchesNodeName
Deprecated.Description copied from class:PatternFor 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.- Overrides:
getMatchesNodeNamein classPattern- Returns:
- the name of the element or attribute this pattern matches or null if this pattern matches any or more than one name
-
simplify
-
getText
-
toString
-
init
private void init()Deprecated.
-