lux.xpath
Class NodeTest

java.lang.Object
  extended by lux.xpath.NodeTest

public class NodeTest
extends Object


Constructor Summary
NodeTest(ValueType type)
           
NodeTest(ValueType type, QName name)
           
 
Method Summary
 QName getQName()
           
 ValueType getType()
           
 boolean isWild()
           
 String toString()
           
 void toString(StringBuilder buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeTest

public NodeTest(ValueType type,
                QName name)
Parameters:
type - the type of test: one of DOCUMENT, NODE, ELEMENT, ATTRIBUTE, TEXT, PROCESSING_INSTRUCTION or COMMENT.
name - the name of the node that the test matches, or null if any node of the given type matches.

The local * name may be "*", indicating a match to any local name.

The prefix may be "*" to indicate any namespace matches (in which case the namespace uri is ignored and should be null).

The namespace uri is preserved for use in query generation, however it is the caller's responsibility to ensure that namespace prefix bindings are consistent within an expression tree, and with the surrounding environment.

For node tests without names (node(), comment(), text()), the name is ignored and should be null. For node tests without namespaces (processing-instruction()), the namespace uri and prefix are both ignored and should be null.

Throws:
IllegalArgumentException - if the type is not a node type,
NullPointerException - if the type is null

NodeTest

public NodeTest(ValueType type)
Method Detail

getType

public ValueType getType()

getQName

public QName getQName()

isWild

public boolean isWild()

toString

public String toString()
Overrides:
toString in class Object

toString

public void toString(StringBuilder buf)


Copyright © 2013. All Rights Reserved.