Class GenericElementNS

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

public class GenericElementNS extends AbstractElementNS
This class implements the Element interface.
See Also:
  • Field Details

    • nodeName

      protected String nodeName
      The node name.
    • readonly

      protected boolean readonly
      Is this element immutable?
  • Constructor Details

    • GenericElementNS

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

      public GenericElementNS(String nsURI, String name, AbstractDocument owner)
      Creates a new Element object.
      Parameters:
      nsURI - The element namespace URI.
      name - The element qualified name.
      owner - The owner document.
      Throws:
      DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
      NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null or an empty string, or if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "http://www.w3.org/XML/1998/namespace" .
  • 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 AbstractElementNS
      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 AbstractElementNS
      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 AbstractElementNS
      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 AbstractElementNS
      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