Class GenericElement

All Implemented Interfaces:
Serializable, NodeEventTarget, ExtendedNode, NodeXBL, XBLManagerData, ElementTraversal, Element, EventTarget, Node

public class GenericElement extends AbstractElement
This class implements the Element interface.
Version:
$Id: GenericElement.java 1733416 2016-03-03 07:07:13Z gadams $
See Also:
  • Field Details

    • nodeName

      protected String nodeName
      The node name.
    • readonly

      protected boolean readonly
      Is this element immutable?
  • Constructor Details

    • GenericElement

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

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

    • setNodeName

      public void setNodeName(String v)
      Sets the name of this node.
      Specified by:
      setNodeName in interface ExtendedNode
      Overrides:
      setNodeName in class AbstractNode
    • getNodeName

      public 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 Node export(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 Node deepExport(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 Node copyInto(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 Node deepCopyInto(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 Node newNode()
      Returns a new uninitialized instance of this object's class.
      Specified by:
      newNode in class AbstractNode