Class GenericElement

    • Field Detail

      • nodeName

        protected java.lang.String nodeName
        The node name.
      • readonly

        protected boolean readonly
        Is this element immutable?
    • Constructor Detail

      • GenericElement

        protected GenericElement()
        Creates a new Element object.
      • GenericElement

        public GenericElement​(java.lang.String name,
                              AbstractDocument owner)
                       throws org.w3c.dom.DOMException
        Creates a new Element object.
        Parameters:
        name - The element name for validation purposes.
        owner - The owner document.
        Throws:
        org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: if name contains invalid characters,
    • Method Detail

      • getNodeName

        public java.lang.String getNodeName()
        DOM: Implements Node.getNodeName().
        Returns:
        nodeName
      • isReadonly

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

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

        protected org.w3c.dom.Node export​(org.w3c.dom.Node n,
                                          AbstractDocument d)
        Exports this node to the given document.
        Overrides:
        export in class AbstractElement
        Parameters:
        n - The clone node.
        d - The destination document.
      • deepExport

        protected org.w3c.dom.Node deepExport​(org.w3c.dom.Node n,
                                              AbstractDocument d)
        Deeply exports this node to the given document.
        Overrides:
        deepExport in class AbstractElement
        Parameters:
        n - The clone node.
        d - The destination document.
      • copyInto

        protected org.w3c.dom.Node copyInto​(org.w3c.dom.Node n)
        Copy the fields of the current node into the given node.
        Overrides:
        copyInto in class AbstractElement
        Parameters:
        n - a node of the type of this.
      • deepCopyInto

        protected org.w3c.dom.Node deepCopyInto​(org.w3c.dom.Node n)
        Deeply copy the fields of the current node into the given node.
        Overrides:
        deepCopyInto in class AbstractElement
        Parameters:
        n - a node of the type of this.
      • newNode

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