Class AttrImpl

  • All Implemented Interfaces:
    org.w3c.dom.Attr, org.w3c.dom.Node

    public class AttrImpl
    extends NodeImpl
    implements org.w3c.dom.Attr
    This class represents a single attribute.

    INTERNAL:

    Usage of this class is not supported. It may be altered or removed at any time.
    Version:
    $Id: AttrImpl.java 982713 2010-08-05 17:54:01Z mrglavas $
    Author:
    Rahul Srivastava, Sun Microsystems Inc.
    • Constructor Detail

      • AttrImpl

        public AttrImpl()
        Default Constructor
      • AttrImpl

        public AttrImpl​(org.w3c.dom.Element element,
                        java.lang.String prefix,
                        java.lang.String localpart,
                        java.lang.String rawname,
                        java.lang.String uri,
                        java.lang.String value)
        Constructs an attribute.
        Parameters:
        element - Element which owns this attribute
        prefix - The QName prefix.
        localpart - The QName localpart.
        rawname - The QName rawname.
        uri - The uri binding for the associated prefix.
        value - The value of the attribute.
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.w3c.dom.Attr
      • getSpecified

        public boolean getSpecified()
        Specified by:
        getSpecified in interface org.w3c.dom.Attr
      • getValue

        public java.lang.String getValue()
        Specified by:
        getValue in interface org.w3c.dom.Attr
      • getNodeValue

        public java.lang.String getNodeValue()
        Specified by:
        getNodeValue in interface org.w3c.dom.Node
        Overrides:
        getNodeValue in class DefaultNode
      • getOwnerElement

        public org.w3c.dom.Element getOwnerElement()
        Specified by:
        getOwnerElement in interface org.w3c.dom.Attr
      • getOwnerDocument

        public org.w3c.dom.Document getOwnerDocument()
        Specified by:
        getOwnerDocument in interface org.w3c.dom.Node
        Overrides:
        getOwnerDocument in class DefaultNode
      • setValue

        public void setValue​(java.lang.String value)
                      throws org.w3c.dom.DOMException
        Specified by:
        setValue in interface org.w3c.dom.Attr
        Throws:
        org.w3c.dom.DOMException
      • isId

        public boolean isId()
        Specified by:
        isId in interface org.w3c.dom.Attr
        Since:
        DOM Level 3
      • getSchemaTypeInfo

        public org.w3c.dom.TypeInfo getSchemaTypeInfo()
        Method getSchemaTypeInfo.
        Specified by:
        getSchemaTypeInfo in interface org.w3c.dom.Attr
        Returns:
        TypeInfo
      • toString

        public java.lang.String toString()
        NON-DOM method for debugging convenience
        Overrides:
        toString in class NodeImpl