Interface Attr

All Superinterfaces:
EventTarget, Node
All Known Implementing Classes:
AttrImpl, DOM2DTMdefaultNamespaceDeclarationNode, DTMNodeProxy

public interface Attr extends Node
A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types.
  • Method Details

    • getLocalName

      String getLocalName()

      getLocalName.

      Specified by:
      getLocalName in interface Node
      Returns:
      a String object.
    • getName

      String getName()

      getName.

      Returns:
      a String object.
    • getNamespaceURI

      String getNamespaceURI()

      getNamespaceURI.

      Specified by:
      getNamespaceURI in interface Node
      Returns:
      a String object.
    • getOwnerElement

      Node getOwnerElement()

      getOwnerElement.

      Returns:
      a Node object.
    • getPrefix

      String getPrefix()

      getPrefix.

      Specified by:
      getPrefix in interface Node
      Returns:
      a String object.
    • getSchemaTypeInfo

      TypeInfo getSchemaTypeInfo()

      getCurrentNode.

      Returns:
      a TypeInfo object.
    • isSpecified

      boolean isSpecified()

      isSpecified.

      Returns:
      a boolean.
    • getValue

      String getValue()

      getValue.

      Returns:
      a String object.
    • setValue

      void setValue(String value)

      setValue.

      Parameters:
      value - a String object.
    • setOwnerElement

      void setOwnerElement(Node element)

      setOwnerElement.

      Parameters:
      element - a Node object.
    • isId

      boolean isId()

      isId.

      Returns:
      a boolean.