Class DomProcessingInstruction

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.Node, org.w3c.dom.ProcessingInstruction

    public class DomProcessingInstruction
    extends DomNode
    implements org.w3c.dom.ProcessingInstruction
    Wrapper for the DOM node ProcessingInstruction.
    See Also:
    Serialized Form
    • Constructor Detail

      • DomProcessingInstruction

        public DomProcessingInstruction​(SgmlPage page,
                                        java.lang.String target,
                                        java.lang.String data)
        Creates a new instance.
        Parameters:
        page - the Page that contains this element
        target - the target
        data - the data
    • Method Detail

      • getNodeType

        public short getNodeType()
        Specified by:
        getNodeType in interface org.w3c.dom.Node
        Returns:
        the node type constant, in this case Node.PROCESSING_INSTRUCTION_NODE
      • getNodeName

        public java.lang.String getNodeName()
        Specified by:
        getNodeName in interface org.w3c.dom.Node
      • getTarget

        public java.lang.String getTarget()
        Specified by:
        getTarget in interface org.w3c.dom.ProcessingInstruction
      • getData

        public java.lang.String getData()
        Specified by:
        getData in interface org.w3c.dom.ProcessingInstruction
      • setData

        public void setData​(java.lang.String data)
                     throws org.w3c.dom.DOMException
        Specified by:
        setData in interface org.w3c.dom.ProcessingInstruction
        Throws:
        org.w3c.dom.DOMException
      • setNodeValue

        public void setNodeValue​(java.lang.String value)
        Specified by:
        setNodeValue in interface org.w3c.dom.Node
      • getNodeValue

        public java.lang.String getNodeValue()
        Specified by:
        getNodeValue in interface org.w3c.dom.Node
        Overrides:
        getNodeValue in class DomNode
      • setTextContent

        public void setTextContent​(java.lang.String textContent)
        Specified by:
        setTextContent in interface org.w3c.dom.Node
        Overrides:
        setTextContent in class DomNode
      • printXml

        protected void printXml​(java.lang.String indent,
                                java.io.PrintWriter printWriter)
        Recursively writes the XML data for the node tree starting at node.
        Overrides:
        printXml in class DomNode
        Parameters:
        indent - white space to indent child nodes
        printWriter - writer where child nodes are written
      • setPrefix

        public void setPrefix​(java.lang.String prefix)
        Specified by:
        setPrefix in interface org.w3c.dom.Node