com.novell.xml.xpath
Class NodeTypePI

java.lang.Object
  extended bycom.novell.xml.xpath.NodeType
      extended bycom.novell.xml.xpath.NodeTypePI
All Implemented Interfaces:
NodeTest

public class NodeTypePI
extends NodeType
implements NodeTest

class that represents pi('literal') construct in XPath expressions


Constructor Summary
NodeTypePI(String literal)
           
 
Method Summary
 boolean evaluate(Node node)
          Evaluate the NodeTest with respect to the expression context
 String toString()
          Provide a readable description of the for debugging.
 
Methods inherited from class com.novell.xml.xpath.NodeType
getNodeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeTypePI

public NodeTypePI(String literal)
Method Detail

evaluate

public boolean evaluate(Node node)
Evaluate the NodeTest with respect to the expression context

Specified by:
evaluate in interface NodeTest
Overrides:
evaluate in class NodeType
Parameters:
node - node to evaluate
Returns:
true if context Node is matched by NodeTest, false otherwise

toString

public String toString()
Provide a readable description of the for debugging.

Overrides:
toString in class NodeType
Returns:
String representation