Package com.adobe.xfa

Class ProcessingInstruction

  • All Implemented Interfaces:

    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,
                                     String name,
                                     String data)
        Instantiates a processing instruction with the given 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.
    • Method Detail

      • getClassAtom

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

        public 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.
        getClassName in class Obj
        the class name.
      • getData

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

        public String getName()
        Gets this node's name.
        Specified by:
        getName in class Node
        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
        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​(OutputStream outStream,
                              DOMSaveOptions options,
                              int level,
                              Node prevSibling)
                       throws IOException
        Description copied from class: Node
        The helper function used by saveXML()
        Specified by:
        serialize in class Node
        outStream - Streamfile to write to
        options - save options
        level - the indent level
        prevSibling - our previous sibling -- needed for some markup options.
      • setData

        public void setData​(String data)
      • setScriptProperty

        public void setScriptProperty​(String sPropertyName,
                                      Arg propertyValue)