FileDocCategorySizeDatePackage
AttrImpl.javaAPI DocJava SE 5 API4549Fri Aug 26 14:55:52 BST 2005com.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.5 2003/03/20 00:38:30 elena 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;