org.planx.xpath.expr
Class NodeTypeTest

java.lang.Object
  extended by org.planx.xpath.expr.NodeTest
      extended by org.planx.xpath.expr.NodeTypeTest

public class NodeTypeTest
extends NodeTest

Represents a node type test.


Field Summary
static int NODE
           
static int PRINCIPAL
           
static int TEXT
           
 
Constructor Summary
NodeTypeTest(int nodeType)
           
 
Method Summary
 boolean matches(Object node, int principalNodeType, Navigator navigator)
          Returns true if the specified object matches this node test.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRINCIPAL

public static final int PRINCIPAL
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

NODE

public static final int NODE
See Also:
Constant Field Values
Constructor Detail

NodeTypeTest

public NodeTypeTest(int nodeType)
Method Detail

matches

public boolean matches(Object node,
                       int principalNodeType,
                       Navigator navigator)
                throws XPathException
Description copied from class: NodeTest
Returns true if the specified object matches this node test. The argument principalNodeType is the principal node type of the axis as specified in Navigator.

Specified by:
matches in class NodeTest
Throws:
XPathException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.