|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaxen.pattern.Pattern
org.jaxen.pattern.UnionPattern
public class UnionPattern
UnionPattern
represents a union pattern.
Field Summary |
---|
Fields inherited from class org.jaxen.pattern.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 | |
---|---|
UnionPattern()
|
|
UnionPattern(Pattern lhs,
Pattern rhs)
|
Method Summary | |
---|---|
Pattern |
getLHS()
|
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. |
short |
getMatchType()
Returns the type of node the pattern matches. |
Pattern |
getRHS()
|
String |
getText()
Returns a textual representation of this pattern |
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. |
boolean |
matches(Object node,
Context context)
|
void |
setLHS(Pattern lhs)
|
void |
setRHS(Pattern rhs)
|
Pattern |
simplify()
|
String |
toString()
|
Methods inherited from class org.jaxen.pattern.Pattern |
---|
getPriority |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnionPattern()
public UnionPattern(Pattern lhs, Pattern rhs)
Method Detail |
---|
public Pattern getLHS()
public void setLHS(Pattern lhs)
public Pattern getRHS()
public void setRHS(Pattern rhs)
public boolean matches(Object node, Context context) throws JaxenException
matches
in class Pattern
node
- ????context
- ????
JaxenException
- if ????public Pattern[] getUnionPatterns()
Pattern
getUnionPatterns
in class Pattern
public short getMatchType()
Pattern
getMatchType
in class Pattern
ANY_NODE
unless overriddenpublic String getMatchesNodeName()
Pattern
getMatchesNodeName
in class Pattern
public Pattern simplify()
simplify
in class Pattern
public String getText()
Pattern
getText
in class Pattern
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |