org.apache.xerces.impl.xs.opti

Class AttrImpl

Implemented Interfaces:
Attr, Node

public class AttrImpl
extends NodeImpl
implements Attr

This class represents a single attribute.
Version:
$Id: AttrImpl.java,v 1.8 2005/05/02 22:00:52 mrglavas Exp $
Author:
Rahul Srivastava, Sun Microsystems Inc.

Constructor Summary

AttrImpl()
Default Constructor
AttrImpl(Element element, String prefix, String localpart, String rawname, String uri, String value)
Constructs an attribute.

Method Summary

String
getName()
Element
getOwnerElement()
TypeInfo
getSchemaTypeInfo()
Method getSchemaTypeInfo.
boolean
getSpecified()
String
getValue()
boolean
isId()
void
setValue(String value)

Methods inherited from class org.apache.xerces.impl.xs.opti.NodeImpl

getLocalName, getNamespaceURI, getNodeName, getNodeType, getPrefix, getReadOnly, setReadOnly

Methods inherited from class org.apache.xerces.impl.xs.opti.DefaultNode

appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData

Constructor Details

AttrImpl

public AttrImpl()
Default Constructor

AttrImpl

public AttrImpl(Element element,
                String prefix,
                String localpart,
                String rawname,
                String uri,
                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 Details

getName

public String getName()

getOwnerElement

public Element getOwnerElement()

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()
Method getSchemaTypeInfo.
Returns:
TypeInfo

getSpecified

public boolean getSpecified()

getValue

public String getValue()

isId

public boolean isId()
Since:
DOM Level 3

setValue

public void setValue(String value)
            throws DOMException

Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.