net.sf.swan.xpath.pattern
Class NodeTest

java.lang.Object
  |
  +--net.sf.swan.xpath.pattern.NodeTest
All Implemented Interfaces:
NodeTypes, Pattern
Direct Known Subclasses:
AnyNodeTest, NamespaceTest, NameTest, NodeTypeTest, ProcessingInstructionTargetTest

public abstract class NodeTest
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
NodeTest()
           
 
Method Summary
 java.lang.String getMatchNodeName()
           
static java.lang.String getNodeTypeName(short nodeType)
           
abstract  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
 
Methods inherited from interface net.sf.swan.xpath.pattern.Pattern
getDefaultPriority, getMatchNodeType
 

Constructor Detail

NodeTest

public NodeTest()
Method Detail

match

public abstract boolean match(java.lang.Object node,
                              org.jaxen.ContextSupport support)
Specified by:
match 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

getNodeTypeName

public static java.lang.String getNodeTypeName(short nodeType)