Package com.adobe.xfa

Class ProcessingInstruction

  • All Implemented Interfaces:
    Peer

    public final class ProcessingInstruction
    extends Node
    A class to represent the XML processing instruction nodes in the DOM.

    A processing instruction's name is the target name that follows the <?.

    A processing instruction's data is all of the characters following the target name and space and ending ?>.

    • Constructor Detail

      • ProcessingInstruction

        public ProcessingInstruction​(Element parent,
                                     Node prevSibling,
                                     java.lang.String name,
                                     java.lang.String data)
        Instantiates a processing instruction with the given parameters.
        Parameters:
        parent - the node's parent, if any.
        prevSibling - the node's previous sibling, if any.
        name - the node's name.
        data - the node's data.
      • ProcessingInstruction

        public ProcessingInstruction​(Document doc,
                                     java.lang.String name,
                                     java.lang.String data)
    • Method Detail

      • getClassAtom

        public java.lang.String getClassAtom()
        Description copied from class: Obj
        Returns the atomic name of this element's class.
        Overrides:
        getClassAtom in class Obj
        Returns:
        the class name as an interned string.
      • getClassName

        public java.lang.String getClassName()
        Description copied from class: Obj
        Gets the name of this object's class. Overriden by derived classes such as Element that have a local name that may be returned instead.
        Overrides:
        getClassName in class Obj
        Returns:
        the class name.
      • getData

        public java.lang.String getData()
        Description copied from class: Node
        Gets this node's data.
        Overrides:
        getData in class Node
        Returns:
        the data appropriate for the various node types.
        See Also:
        Node.getData()
      • getName

        public java.lang.String getName()
        Gets this node's name.
        Specified by:
        getName in class Node
        Returns:
        the processing instruction name.
      • isLeaf

        public boolean isLeaf()
        Description copied from class: Node
        Is this node is a leaf.
        Specified by:
        isLeaf in class Node
        Returns:
        true if this node is a leaf and false otherwise.
      • postSave

        public void postSave()
        Specified by:
        postSave in class Node
      • preSave

        public void preSave​(boolean bSaveXMLScript)
        Specified by:
        preSave in class Node
      • serialize

        public void serialize​(java.io.OutputStream outStream,
                              DOMSaveOptions options,
                              int level,
                              Node prevSibling)
                       throws java.io.IOException
        Description copied from class: Node
        The helper function used by saveXML()
        Specified by:
        serialize in class Node
        Parameters:
        outStream - Streamfile to write to
        options - save options
        level - the indent level
        prevSibling - our previous sibling -- needed for some markup options.
        Throws:
        java.io.IOException
      • setData

        public void setData​(java.lang.String data)
      • setScriptProperty

        public void setScriptProperty​(java.lang.String sPropertyName,
                                      Arg propertyValue)