java.lang.Object
org.rumbledb.expressions.xml.node_test.PITest
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, 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 Summary

    Constructors
    Constructor
    Description
    Creates a PITest that matches any processing-instruction node.
    PITest(String targetName)
    Creates a PITest that matches processing-instruction nodes with the given target name.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     
    void
    read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
     
     
    void
    write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PITest

      public PITest()
      Creates a PITest that matches any processing-instruction node.
    • 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()
    • getTargetName

      public String getTargetName()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable