com.novell.xsl.pattern
Class PatternNodeType

java.lang.Object
  extended bycom.novell.xsl.pattern.PatternNodeType
All Implemented Interfaces:
NodeTest

public class PatternNodeType
extends Object
implements NodeTest

Class that represents a node() test in an XSLT Pattern This exists because of the need to not match the root node and attribute nodes since "node()" is really short for child::node, and the root node, attributes, and namespace nodes don't appear in the child axis

See Also:
NodeTypePI

Constructor Summary
PatternNodeType()
          Construct a NodeTest implementation
 
Method Summary
 boolean evaluate(Node node)
          Evaluate the NodeTest with respect to the expression context
 String toString()
          Provide a readable description for debugging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatternNodeType

public PatternNodeType()
Construct a NodeTest implementation

Method Detail

toString

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

Returns:
String representation

evaluate

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

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