com.novell.xml.xpath
Class NodeTypePI
java.lang.Object
com.novell.xml.xpath.NodeType
com.novell.xml.xpath.NodeTypePI
- All Implemented Interfaces:
- NodeTest
- public class NodeTypePI
- extends NodeType
- implements NodeTest
class that represents pi('literal') construct in XPath expressions
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. |
NodeTypePI
public NodeTypePI(String literal)
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