Class TypedProcessingInstruction


public class TypedProcessingInstruction extends TypedEthereal
Realizes "PIs" = Processing Instructions in a tdom model instance. Implementation is immutable/algebraic. The text value is a (possibly empty) string. The target value must match the "Name" production [5] from [XML 1.0], section 2.6. This is checked by NmTokenAttribute.checkPITarget(String).
  • Constructor Details

  • Method Details

    • getTarget

      public String getTarget()
      Returns the target value.
      Returns:
      (never null) the target value.
    • getText

      public String getText()
      Returns the text contents.
      Returns:
      (never null) the text contents.
    • encode

      public void encode(EncodingOutputStream out, TypedExtension ext)
      Description copied from class: TypedNode
      Abstract fall-back method which MUST be overridden and always throws an Exception.
      Specified by:
      encode in class TypedNode
    • dump

      public void dump(ContentHandler contentHandler, @Opt LexicalHandler lexicalHandler) throws SAXException
      Description copied from class: TypedEthereal
      Write this model component to a SAX output stream. Please note that in the SAX architecture, PIs are treated by a ContentHandler, but Comments by a LexicalHandler, so these two handlers must be supplied as a tandem for a method defined with this abstract class.
      Specified by:
      dump in class TypedEthereal
      Parameters:
      contentHandler - (never null) SAX handler for writing a TypedProcessingInstruction
      lexicalHandler - SAX handler for writing a Comment. If null, then the comments are silently discarded.
      Throws:
      SAXException