FileDocCategorySizeDatePackage
AttrImpl.javaAPI DocJava SE 6 API4557Tue Jun 10 00:22:46 BST 2008com.sun.org.apache.xerces.internal.impl.xs.opti

AttrImpl

public class AttrImpl extends NodeImpl implements Attr
This class represents a single attribute.
author
Rahul Srivastava, Sun Microsystems Inc.
version
$Id: AttrImpl.java,v 1.1.2.1 2005/08/01 03:38:05 jeffsuttor Exp $

Fields Summary
Element
element
String
value
Constructors Summary
public AttrImpl()
Default Constructor

        nodeType = Node.ATTRIBUTE_NODE;
    
public AttrImpl(Element element, String prefix, String localpart, String rawname, String uri, String value)
Constructs an attribute.

param
element Element which owns this attribute
param
prefix The QName prefix.
param
localpart The QName localpart.
param
rawname The QName rawname.
param
uri The uri binding for the associated prefix.
param
value The value of the attribute.

        super(prefix, localpart, rawname, uri, Node.ATTRIBUTE_NODE);
        this.element = element;
        this.value = value;
    
Methods Summary
public java.lang.StringgetName()

        return rawname;
    
public org.w3c.dom.ElementgetOwnerElement()

        return element;
    
public org.w3c.dom.TypeInfogetSchemaTypeInfo()
Method getSchemaTypeInfo.

return
TypeInfo

      return null;
    
public booleangetSpecified()

        return true;
    
public java.lang.StringgetValue()

        return value;
    
public booleanisId()

since
DOM Level 3

        return false;
    
public voidsetValue(java.lang.String value)

        this.value = value;