public class DOMAttribute extends DefaultAttribute implements Attr
DOMAttribute implements a doubly linked attribute which
supports the W3C DOM API.
valueNODE_TYPE_NAMESATTRIBUTE_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_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| Constructor and Description |
|---|
DOMAttribute(Element parent,
QName qname,
String value) |
DOMAttribute(QName qname) |
DOMAttribute(QName qname,
String value) |
| Modifier and Type | Method and Description |
|---|---|
Node |
appendChild(Node newChild) |
Node |
cloneNode(boolean deep) |
NamedNodeMap |
getAttributes() |
NodeList |
getChildNodes() |
Node |
getFirstChild() |
Node |
getLastChild() |
String |
getLocalName() |
String |
getNamespaceURI()
Returns the URI mapped to the namespace of this element if one exists
otherwise an empty
String is returned. |
Node |
getNextSibling() |
String |
getNodeName() |
String |
getNodeValue() |
Document |
getOwnerDocument() |
Element |
getOwnerElement() |
Node |
getParentNode() |
String |
getPrefix() |
Node |
getPreviousSibling() |
boolean |
getSpecified() |
boolean |
hasAttributes() |
boolean |
hasChildNodes() |
Node |
insertBefore(Node newChild,
Node refChild) |
boolean |
isSupported(String feature,
String version) |
void |
normalize() |
Node |
removeChild(Node oldChild) |
Node |
replaceChild(Node newChild,
Node oldChild) |
void |
setNodeValue(String nodeValue) |
void |
setPrefix(String prefix) |
boolean |
supports(String feature,
String version) |
getParent, isReadOnly, setParent, setValue, supportsParentgetQName, getValueaccept, asXML, createXPathResult, getData, getName, getNamespace, getNamespacePrefix, getNodeType, getPath, getQualifiedName, getText, getUniquePath, setData, setNamespace, setText, toString, writeasXPathResult, clone, createPattern, createXPath, createXPathFilter, detach, getDocument, getDocumentFactory, getNodeTypeName, getPath, getStringValue, getUniquePath, hasContent, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, valueOfequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getSchemaTypeInfo, getValue, isId, setValuecompareDocumentPosition, getBaseURI, getFeature, getNodeType, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserDataasXPathResult, clone, createXPath, detach, getDocument, getNodeTypeName, getPath, getStringValue, getUniquePath, hasContent, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, valueOfpublic DOMAttribute(QName qname)
public String getNamespaceURI()
Attribute
Returns the URI mapped to the namespace of this element if one exists
otherwise an empty String is returned.
getNamespaceURI in interface AttributegetNamespaceURI in class AbstractAttributeNamespace of this element or an
empty Stringpublic String getPrefix()
public void setPrefix(String prefix) throws DOMException
DOMExceptionpublic String getLocalName()
public String getNodeName()
public String getNodeValue() throws DOMException
DOMExceptionpublic void setNodeValue(String nodeValue) throws DOMException
DOMExceptionpublic Node getParentNode()
public NodeList getChildNodes()
public Node getFirstChild()
public Node getLastChild()
public Node getPreviousSibling()
public Node getNextSibling()
public NamedNodeMap getAttributes()
public Document getOwnerDocument()
public Node insertBefore(Node newChild, Node refChild) throws DOMException
DOMExceptionpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException
DOMExceptionpublic Node removeChild(Node oldChild) throws DOMException
DOMExceptionpublic Node appendChild(Node newChild) throws DOMException
DOMExceptionpublic boolean hasChildNodes()
public Node cloneNode(boolean deep)
public void normalize()
public boolean hasAttributes()
public boolean getSpecified()
getSpecified in interface Attrpublic Element getOwnerElement()
getOwnerElement in interface AttrCopyright © 2012 JBoss by Red Hat. All Rights Reserved.