Class GenericAttrNS

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

public class GenericAttrNS extends AbstractAttrNS
This class implements the Attr interface with support for namespaces.
See Also:
  • Field Details

    • readonly

      protected boolean readonly
      Is this attribute immutable?
  • Constructor Details

    • GenericAttrNS

      protected GenericAttrNS()
      Creates a new Attr object.
    • GenericAttrNS

      public GenericAttrNS(String nsURI, String qname, AbstractDocument owner) throws DOMException
      Creates a new Attr object.
      Parameters:
      nsURI - The element namespace URI.
      qname - The attribute qualified name for validation purposes.
      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, if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "http://www.w3.org/XML/1998/namespace", if the qualifiedName has a prefix that is "xmlns" and the namespaceURI is different from "http://www.w3.org/2000/xmlns/", or if the qualifiedName is "xmlns" and the namespaceURI is different from "http://www.w3.org/2000/xmlns/".
  • Method Details

    • isReadonly

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

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

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