Package org.dom4j.dom
Class DOMAttribute
- java.lang.Object
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- Attribute,- Node,- org.w3c.dom.Attr,- org.w3c.dom.Node
 
 public class DOMAttribute extends DefaultAttribute implements org.w3c.dom.Attr DOMAttributeimplements a doubly linked attribute which supports the W3C DOM API.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.dom4j.tree.FlyweightAttributevalue
 - 
Fields inherited from class org.dom4j.tree.AbstractNodeNODE_TYPE_NAMES
 - 
Fields inherited from interface org.dom4j.NodeANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
 - 
Fields inherited from interface org.w3c.dom.NodeATTRIBUTE_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
 
- 
 - 
Constructor SummaryConstructors Constructor Description DOMAttribute(Element parent, QName qname, java.lang.String value)DOMAttribute(QName qname)DOMAttribute(QName qname, java.lang.String value)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.NodeappendChild(org.w3c.dom.Node newChild)org.w3c.dom.NodecloneNode(boolean deep)shortcompareDocumentPosition(org.w3c.dom.Node other)org.w3c.dom.NamedNodeMapgetAttributes()java.lang.StringgetBaseURI()java.lang.ObjectgetFeature(java.lang.String feature, java.lang.String version)org.w3c.dom.NodegetFirstChild()org.w3c.dom.NodeListgetChildNodes()org.w3c.dom.NodegetLastChild()java.lang.StringgetLocalName()java.lang.StringgetNamespaceURI()Returns the URI mapped to the namespace of this element if one exists otherwise an emptyStringis returned.org.w3c.dom.NodegetNextSibling()java.lang.StringgetNodeName()java.lang.StringgetNodeValue()org.w3c.dom.DocumentgetOwnerDocument()org.w3c.dom.ElementgetOwnerElement()org.w3c.dom.NodegetParentNode()java.lang.StringgetPrefix()org.w3c.dom.NodegetPreviousSibling()org.w3c.dom.TypeInfogetSchemaTypeInfo()booleangetSpecified()java.lang.StringgetTextContent()java.lang.ObjectgetUserData(java.lang.String key)booleanhasAttributes()booleanhasChildNodes()org.w3c.dom.NodeinsertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild)booleanisDefaultNamespace(java.lang.String namespaceURI)booleanisEqualNode(org.w3c.dom.Node other)booleanisId()booleanisSameNode(org.w3c.dom.Node other)booleanisSupported(java.lang.String feature, java.lang.String version)java.lang.StringlookupNamespaceURI(java.lang.String prefix)java.lang.StringlookupPrefix(java.lang.String namespaceURI)voidnormalize()org.w3c.dom.NoderemoveChild(org.w3c.dom.Node oldChild)org.w3c.dom.NodereplaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild)voidsetNodeValue(java.lang.String nodeValue)voidsetPrefix(java.lang.String prefix)voidsetTextContent(java.lang.String textContent)java.lang.ObjectsetUserData(java.lang.String key, java.lang.Object data, org.w3c.dom.UserDataHandler handler)booleansupports(java.lang.String feature, java.lang.String version)- 
Methods inherited from class org.dom4j.tree.DefaultAttributegetParent, isReadOnly, setParent, setValue, supportsParent
 - 
Methods inherited from class org.dom4j.tree.FlyweightAttributegetQName, getValue
 - 
Methods inherited from class org.dom4j.tree.AbstractAttributeaccept, asXML, createXPathResult, getData, getName, getNamespace, getNamespacePrefix, getNodeType, getPath, getQualifiedName, getText, getUniquePath, setData, setNamespace, setText, toString, write
 - 
Methods inherited from class org.dom4j.tree.AbstractNodeasXPathResult, clone, createPattern, createXPath, createXPathFilter, detach, getDocument, getDocumentFactory, getNodeTypeName, getPath, getStringValue, getUniquePath, hasContent, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, valueOf
 - 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.dom4j.NodeasXPathResult, clone, createXPath, detach, getDocument, getNodeTypeName, getPath, getStringValue, getUniquePath, hasContent, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, valueOf
 
- 
 
- 
- 
- 
Method Detail- 
supportspublic boolean supports(java.lang.String feature, java.lang.String version)
 - 
getNamespaceURIpublic java.lang.String getNamespaceURI() Description copied from interface:AttributeReturns the URI mapped to the namespace of this element if one exists otherwise an emptyStringis returned.- Specified by:
- getNamespaceURIin interface- Attribute
- Specified by:
- getNamespaceURIin interface- org.w3c.dom.Node
- Overrides:
- getNamespaceURIin class- AbstractAttribute
- Returns:
- the URI for the Namespaceof this element or an emptyString
 
 - 
getPrefixpublic java.lang.String getPrefix() - Specified by:
- getPrefixin interface- org.w3c.dom.Node
 
 - 
setPrefixpublic void setPrefix(java.lang.String prefix) throws org.w3c.dom.DOMException- Specified by:
- setPrefixin interface- org.w3c.dom.Node
- Throws:
- org.w3c.dom.DOMException
 
 - 
getLocalNamepublic java.lang.String getLocalName() - Specified by:
- getLocalNamein interface- org.w3c.dom.Node
 
 - 
getNodeNamepublic java.lang.String getNodeName() - Specified by:
- getNodeNamein interface- org.w3c.dom.Node
 
 - 
getNodeValuepublic java.lang.String getNodeValue() throws org.w3c.dom.DOMException- Specified by:
- getNodeValuein interface- org.w3c.dom.Node
- Throws:
- org.w3c.dom.DOMException
 
 - 
setNodeValuepublic void setNodeValue(java.lang.String nodeValue) throws org.w3c.dom.DOMException- Specified by:
- setNodeValuein interface- org.w3c.dom.Node
- Throws:
- org.w3c.dom.DOMException
 
 - 
getParentNodepublic org.w3c.dom.Node getParentNode() - Specified by:
- getParentNodein interface- org.w3c.dom.Node
 
 - 
getChildNodespublic org.w3c.dom.NodeList getChildNodes() - Specified by:
- getChildNodesin interface- org.w3c.dom.Node
 
 - 
getFirstChildpublic org.w3c.dom.Node getFirstChild() - Specified by:
- getFirstChildin interface- org.w3c.dom.Node
 
 - 
getLastChildpublic org.w3c.dom.Node getLastChild() - Specified by:
- getLastChildin interface- org.w3c.dom.Node
 
 - 
getPreviousSiblingpublic org.w3c.dom.Node getPreviousSibling() - Specified by:
- getPreviousSiblingin interface- org.w3c.dom.Node
 
 - 
getNextSiblingpublic org.w3c.dom.Node getNextSibling() - Specified by:
- getNextSiblingin interface- org.w3c.dom.Node
 
 - 
getAttributespublic org.w3c.dom.NamedNodeMap getAttributes() - Specified by:
- getAttributesin interface- org.w3c.dom.Node
 
 - 
getOwnerDocumentpublic org.w3c.dom.Document getOwnerDocument() - Specified by:
- getOwnerDocumentin interface- org.w3c.dom.Node
 
 - 
insertBeforepublic org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException- Specified by:
- insertBeforein interface- org.w3c.dom.Node
- Throws:
- org.w3c.dom.DOMException
 
 - 
replaceChildpublic org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException- Specified by:
- replaceChildin interface- org.w3c.dom.Node
- Throws:
- org.w3c.dom.DOMException
 
 - 
removeChildpublic org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException- Specified by:
- removeChildin interface- org.w3c.dom.Node
- Throws:
- org.w3c.dom.DOMException
 
 - 
appendChildpublic org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException- Specified by:
- appendChildin interface- org.w3c.dom.Node
- Throws:
- org.w3c.dom.DOMException
 
 - 
hasChildNodespublic boolean hasChildNodes() - Specified by:
- hasChildNodesin interface- org.w3c.dom.Node
 
 - 
cloneNodepublic org.w3c.dom.Node cloneNode(boolean deep) - Specified by:
- cloneNodein interface- org.w3c.dom.Node
 
 - 
normalizepublic void normalize() - Specified by:
- normalizein interface- org.w3c.dom.Node
 
 - 
isSupportedpublic boolean isSupported(java.lang.String feature, java.lang.String version)- Specified by:
- isSupportedin interface- org.w3c.dom.Node
 
 - 
hasAttributespublic boolean hasAttributes() - Specified by:
- hasAttributesin interface- org.w3c.dom.Node
 
 - 
getSpecifiedpublic boolean getSpecified() - Specified by:
- getSpecifiedin interface- org.w3c.dom.Attr
 
 - 
getOwnerElementpublic org.w3c.dom.Element getOwnerElement() - Specified by:
- getOwnerElementin interface- org.w3c.dom.Attr
 
 - 
getSchemaTypeInfopublic org.w3c.dom.TypeInfo getSchemaTypeInfo() - Specified by:
- getSchemaTypeInfoin interface- org.w3c.dom.Attr
 
 - 
isIdpublic boolean isId() - Specified by:
- isIdin interface- org.w3c.dom.Attr
 
 - 
getBaseURIpublic java.lang.String getBaseURI() - Specified by:
- getBaseURIin interface- org.w3c.dom.Node
 
 - 
compareDocumentPositionpublic short compareDocumentPosition(org.w3c.dom.Node other) throws org.w3c.dom.DOMException- Specified by:
- compareDocumentPositionin interface- org.w3c.dom.Node
- Throws:
- org.w3c.dom.DOMException
 
 - 
getTextContentpublic java.lang.String getTextContent() throws org.w3c.dom.DOMException- Specified by:
- getTextContentin interface- org.w3c.dom.Node
- Throws:
- org.w3c.dom.DOMException
 
 - 
setTextContentpublic void setTextContent(java.lang.String textContent) throws org.w3c.dom.DOMException- Specified by:
- setTextContentin interface- org.w3c.dom.Node
- Throws:
- org.w3c.dom.DOMException
 
 - 
isSameNodepublic boolean isSameNode(org.w3c.dom.Node other) - Specified by:
- isSameNodein interface- org.w3c.dom.Node
 
 - 
lookupPrefixpublic java.lang.String lookupPrefix(java.lang.String namespaceURI) - Specified by:
- lookupPrefixin interface- org.w3c.dom.Node
 
 - 
isDefaultNamespacepublic boolean isDefaultNamespace(java.lang.String namespaceURI) - Specified by:
- isDefaultNamespacein interface- org.w3c.dom.Node
 
 - 
lookupNamespaceURIpublic java.lang.String lookupNamespaceURI(java.lang.String prefix) - Specified by:
- lookupNamespaceURIin interface- org.w3c.dom.Node
 
 - 
isEqualNodepublic boolean isEqualNode(org.w3c.dom.Node other) - Specified by:
- isEqualNodein interface- org.w3c.dom.Node
 
 - 
getFeaturepublic java.lang.Object getFeature(java.lang.String feature, java.lang.String version)- Specified by:
- getFeaturein interface- org.w3c.dom.Node
 
 - 
setUserDatapublic java.lang.Object setUserData(java.lang.String key, java.lang.Object data, org.w3c.dom.UserDataHandler handler)- Specified by:
- setUserDatain interface- org.w3c.dom.Node
 
 - 
getUserDatapublic java.lang.Object getUserData(java.lang.String key) - Specified by:
- getUserDatain interface- org.w3c.dom.Node
 
 
- 
 
-