Class PITest
java.lang.Object
org.rumbledb.expressions.xml.node_test.PITest
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable,Serializable,NodeTest
XQuery 3.1 Section 2.5.5 - SequenceType Matching
PITest ::= "processing-instruction" "(" (NCName | StringLiteral)? ")"
A PITest with no argument matches any processing-instruction node.
A PITest with an NCName or StringLiteral argument matches any processing-instruction node
whose PITarget equals fn:normalize-space of the given name.
- See Also:
-
Constructor Details
-
PITest
public PITest()Creates a PITest that matches any processing-instruction node. -
PITest
Creates a PITest that matches processing-instruction nodes with the given target name.- Parameters:
targetName- the target name to match against (from NCName or StringLiteral)
-
-
Method Details
-
hasTargetName
public boolean hasTargetName() -
getTargetName
-
toString
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable
-