clark.xpath
Class NodeTest

java.lang.Object
  |
  +--clark.xpath.NodeTest
All Implemented Interfaces:
java.io.Serializable

public class NodeTest
extends java.lang.Object
implements java.io.Serializable

Represents the nodetest in the compiled tree.

See Also:
Serialized Form

Constructor Summary
NodeTest(short type_, java.lang.Object name_, java.lang.Object value_)
          Main Constructor.
 
Method Summary
 java.lang.String getName(w3c.dom.Node context)
          Returns earch test value or name test value or attribute name.
 clark.xpath.NodeTestParameters getParams()
           
 short getType()
          Returns type.
 java.lang.String getValue(w3c.dom.Node context)
          Returns attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTest

public NodeTest(short type_,
                java.lang.Object name_,
                java.lang.Object value_)
Main Constructor. Inits the NodeTest.

Parameters:
type_ - Nodetest type.
name_ - Search test value or name test value or attribute name.
value_ - Attribute test value.
Method Detail

getType

public short getType()
Returns type.


getName

public java.lang.String getName(w3c.dom.Node context)
Returns earch test value or name test value or attribute name. Depends on the type of the node test.


getValue

public java.lang.String getValue(w3c.dom.Node context)
Returns attribute value. Depends on the type of the node test.


getParams

public clark.xpath.NodeTestParameters getParams()