Class DomDocumentFragment

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

    public class DomDocumentFragment
    extends DomNode
    implements org.w3c.dom.DocumentFragment
    A DOM object for DocumentFragment.
    See Also:
    Serialized Form
    • Field Detail

      • NODE_NAME

        public static final java.lang.String NODE_NAME
        The symbolic node name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DomDocumentFragment

        public DomDocumentFragment​(SgmlPage page)
        Creates a new instance.
        Parameters:
        page - the page which contains this node
    • Method Detail

      • getNodeName

        public java.lang.String getNodeName()
        Specified by:
        getNodeName in interface org.w3c.dom.Node
        Returns:
        the node name, in this case NODE_NAME
      • getNodeType

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

        public java.lang.String asXml()
        Returns a string representation of the XML document from this element and all it's children (recursively). The charset used is the current page encoding.
        Overrides:
        asXml in class DomNode
        Returns:
        the XML string
      • isAttachedToPage

        public boolean isAttachedToPage()
        INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
        Overrides:
        isAttachedToPage in class DomNode
        Returns:
        false
      • setNodeValue

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

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