java.lang.Object
org.rumbledb.expressions.xml.node_test.PITest
All Implemented Interfaces:
Serializable, NodeTest

public class PITest extends Object implements 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(String targetName)
      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()
    • toString

      public String toString()
      Overrides:
      toString in class Object