Class GenericDocument

    • Field Detail

      • ATTR_ID

        protected static final java.lang.String ATTR_ID
        Local name for 'id' attributes.
        See Also:
        Constant Field Values
      • readonly

        protected boolean readonly
        Is this document immutable?
    • Constructor Detail

      • GenericDocument

        protected GenericDocument()
        Creates a new uninitialized document.
      • GenericDocument

        public GenericDocument​(org.w3c.dom.DocumentType dt,
                               org.w3c.dom.DOMImplementation impl)
        Creates a new uninitialized document.
    • Method Detail

      • isReadonly

        public boolean isReadonly()
        Tests whether this node is readonly.
      • setReadonly

        public void setReadonly​(boolean v)
        Sets this node readonly attribute.
      • isId

        public boolean isId​(org.w3c.dom.Attr node)
        Returns true if the given Attr node represents an 'id' for this document.
        Specified by:
        isId in class AbstractDocument
      • createElement

        public org.w3c.dom.Element createElement​(java.lang.String tagName)
                                          throws org.w3c.dom.DOMException
        DOM: Implements Document.createElement(String).
        Throws:
        org.w3c.dom.DOMException
      • createDocumentFragment

        public org.w3c.dom.DocumentFragment createDocumentFragment()
        DOM: Implements Document.createDocumentFragment().
      • createTextNode

        public org.w3c.dom.Text createTextNode​(java.lang.String data)
        DOM: Implements Document.createTextNode(String).
      • createComment

        public org.w3c.dom.Comment createComment​(java.lang.String data)
        DOM: Implements Document.createComment(String).
      • createCDATASection

        public org.w3c.dom.CDATASection createCDATASection​(java.lang.String data)
                                                    throws org.w3c.dom.DOMException
        DOM: Implements Document.createCDATASection(String).
        Throws:
        org.w3c.dom.DOMException
      • createProcessingInstruction

        public org.w3c.dom.ProcessingInstruction createProcessingInstruction​(java.lang.String target,
                                                                             java.lang.String data)
                                                                      throws org.w3c.dom.DOMException
        DOM: Implements Document.createProcessingInstruction(String,String).
        Returns:
        a StyleSheetProcessingInstruction if target is "xml-stylesheet" or a GenericProcessingInstruction otherwise.
        Throws:
        org.w3c.dom.DOMException
      • createAttribute

        public org.w3c.dom.Attr createAttribute​(java.lang.String name)
                                         throws org.w3c.dom.DOMException
        DOM: Implements Document.createAttribute(String).
        Throws:
        org.w3c.dom.DOMException
      • createEntityReference

        public org.w3c.dom.EntityReference createEntityReference​(java.lang.String name)
                                                          throws org.w3c.dom.DOMException
        DOM: Implements Document.createEntityReference(String).
        Throws:
        org.w3c.dom.DOMException
      • createElementNS

        public org.w3c.dom.Element createElementNS​(java.lang.String namespaceURI,
                                                   java.lang.String qualifiedName)
                                            throws org.w3c.dom.DOMException
        DOM: Implements Document.createElementNS(String,String).
        Throws:
        org.w3c.dom.DOMException
      • createAttributeNS

        public org.w3c.dom.Attr createAttributeNS​(java.lang.String namespaceURI,
                                                  java.lang.String qualifiedName)
                                           throws org.w3c.dom.DOMException
        DOM: Implements Document.createAttributeNS(String,String).
        Throws:
        org.w3c.dom.DOMException
      • newNode

        protected org.w3c.dom.Node newNode()
        Returns a new uninitialized instance of this object's class.
        Specified by:
        newNode in class AbstractNode