public abstract class QAttributedNode extends QNode
QNode.ChildNodeList
_firstChild, _lastChild
L
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
Constructor and Description |
---|
QAttributedNode() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute(java.lang.String name)
Returns the named attribute.
|
org.w3c.dom.Attr |
getAttributeNode(java.lang.String name)
Returns the attribute specified by the name.
|
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String uri,
java.lang.String local) |
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String local)
Returns the attribute specified by a namespace.
|
org.w3c.dom.NamedNodeMap |
getAttributes()
Returns a map of the attributes.
|
org.w3c.dom.Attr |
getFirstAttribute()
Returns the first attribute in the attribute list.
|
boolean |
hasAttribute(java.lang.String name) |
boolean |
hasAttributeNS(java.lang.String uri,
java.lang.String local) |
boolean |
hasAttributes()
Returns true if the element has attributes.
|
void |
removeAttribute(java.lang.String name)
Removes the named attribute.
|
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr attr)
Removes the matching attribute.
|
org.w3c.dom.Attr |
removeAttributeNodeNS(org.w3c.dom.Attr attr)
Removes the matching attribute.
|
void |
removeAttributeNS(java.lang.String uri,
java.lang.String name)
Removes the attribute specified by the localname and namespace.
|
void |
setAttribute(java.lang.String name,
java.lang.String value) |
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr attr)
Sets an attribute, specified by the object.
|
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr attr) |
void |
setAttributeNS(java.lang.String uri,
java.lang.String local,
java.lang.String value) |
void |
setIdAttribute(java.lang.String name,
boolean isId)
Sets an attribute, specified by the object.
|
void |
setIdAttributeNode(org.w3c.dom.Attr attr,
boolean isId)
Sets an attribute, specified by the object.
|
void |
setIdAttributeNS(java.lang.String namespaceURI,
java.lang.String localName,
boolean isId)
Sets an attribute, specified by the object.
|
QAttr |
unlink(java.lang.String uri,
java.lang.String local)
Removes the attribute named by the URI and local name.
|
appendChild, checkValid, equals, equals, getChildNodes, getFirstChild, getLastChild, getNextPreorder, getNextSibling, getNodeValue, getPreviousSibling, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue, setTextContent
baseURI, cloneNode, compareDocumentPosition, compareTreePosition, getBaseURI, getCanonicalName, getColumn, getDependencyList, getFeature, getFilename, getInterface, getLine, getLocalName, getNamespaceURI, getNextContent, getOwnerDocument, getParentNode, getPrefix, getPreviousContent, getQName, getTextContent, getTextValue, getUserData, hasContent, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespacePrefix, lookupNamespaceURI, lookupPrefix, print, printHtml, printPretty, setFeature, setLocation, setPrefix, setUserData, supports
public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
getAttributes
in class QNode
public boolean hasAttributes()
hasAttributes
in interface org.w3c.dom.Node
hasAttributes
in class QAbstractNode
public org.w3c.dom.Attr getFirstAttribute()
public java.lang.String getAttribute(java.lang.String name)
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String local)
public boolean hasAttribute(java.lang.String name)
public boolean hasAttributeNS(java.lang.String uri, java.lang.String local)
public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String uri, java.lang.String local)
public void setAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setAttributeNS(java.lang.String uri, java.lang.String local, java.lang.String value)
public void setIdAttribute(java.lang.String name, boolean isId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setIdAttributeNS(java.lang.String namespaceURI, java.lang.String localName, boolean isId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void setIdAttributeNode(org.w3c.dom.Attr attr, boolean isId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr attr) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr attr) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public void removeAttribute(java.lang.String name)
public void removeAttributeNS(java.lang.String uri, java.lang.String name)
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr attr)
public org.w3c.dom.Attr removeAttributeNodeNS(org.w3c.dom.Attr attr)
public QAttr unlink(java.lang.String uri, java.lang.String local)