org.planx.xpath.expr
Class NameTest

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

public class NameTest
extends NodeTest

Represents a name test.


Constructor Summary
NameTest(String name)
           
 
Method Summary
 boolean matches(Object node, int principalNodeType, Navigator navigator)
          Returns true if the node is of the principal node type and has a name that matches this name test.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameTest

public NameTest(String name)
Method Detail

matches

public boolean matches(Object node,
                       int principalNodeType,
                       Navigator navigator)
                throws XPathException
Returns true if the node is of the principal node type and has a name that matches this name test.

Specified by:
matches in class NodeTest
Throws:
XPathException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.