org.apache.xerces.impl.xs.opti
Class AttrImpl
java.lang.Object
org.apache.xerces.impl.xs.opti.DefaultNode
org.apache.xerces.impl.xs.opti.NodeImpl
org.apache.xerces.impl.xs.opti.AttrImpl
- All Implemented Interfaces:
- Attr, Node
public class AttrImpl
- extends NodeImpl
- implements Attr
This class represents a single attribute.
- Version:
- $Id: AttrImpl.java 705596 2008-10-17 13:05:10Z mrglavas $
- Author:
- Rahul Srivastava, Sun Microsystems Inc.
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Methods inherited from class org.apache.xerces.impl.xs.opti.DefaultNode |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
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 attributeprefix
- 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.
getName
public String getName()
- Specified by:
getName
in interface Attr
getSpecified
public boolean getSpecified()
- Specified by:
getSpecified
in interface Attr
getValue
public String getValue()
- Specified by:
getValue
in interface Attr
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValue
in interface Node
- Overrides:
getNodeValue
in class DefaultNode
getOwnerElement
public Element getOwnerElement()
- Specified by:
getOwnerElement
in interface Attr
setValue
public void setValue(String value)
throws DOMException
- Specified by:
setValue
in interface Attr
- Throws:
DOMException
isId
public boolean isId()
- Specified by:
isId
in interface Attr
- Since:
- DOM Level 3
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Method getSchemaTypeInfo.
- Specified by:
getSchemaTypeInfo
in interface Attr
- Returns:
- TypeInfo
toString
public String toString()
- NON-DOM method for debugging convenience
- Overrides:
toString
in class NodeImpl
Copyright © 2011. All Rights Reserved.