net.sf.swan.xpath.pattern
Class UnionPattern

java.lang.Object
  |
  +--net.sf.swan.xpath.pattern.UnionPattern
All Implemented Interfaces:
NodeTypes, Pattern

public class UnionPattern
extends java.lang.Object
implements Pattern


Fields inherited from interface net.sf.swan.xpath.pattern.NodeTypes
ANY_NODE, ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
 
Constructor Summary
UnionPattern(Pattern[] patterns)
           
 
Method Summary
 double getDefaultPriority()
           
 java.lang.String getMatchNodeName()
           
 short getMatchNodeType()
           
 boolean match(java.lang.Object node, org.jaxen.ContextSupport support)
           
 Pattern simplify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnionPattern

public UnionPattern(Pattern[] patterns)
Method Detail

match

public boolean match(java.lang.Object node,
                     org.jaxen.ContextSupport support)
              throws org.jaxen.JaxenException
Specified by:
match in interface Pattern

getDefaultPriority

public double getDefaultPriority()
Specified by:
getDefaultPriority in interface Pattern

getMatchNodeType

public short getMatchNodeType()
Specified by:
getMatchNodeType in interface Pattern

getMatchNodeName

public java.lang.String getMatchNodeName()
Specified by:
getMatchNodeName in interface Pattern

simplify

public Pattern simplify()
Specified by:
simplify in interface Pattern