public class Attribute extends AttributeDesignator
| Constructor and Description |
|---|
Attribute(org.w3c.dom.Document owner)
Creates a new
Attribute instance. |
Attribute(org.w3c.dom.Element element)
Creates a new
Attribute instance from the given Element node. |
Attribute(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new
Attribute instance from the given Element node. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeValue(java.lang.String attributeValue)
Adds a the value to the attribute.
|
java.util.List |
getAttributeValues()
Gets the list of values.
|
getAttributeName, getAttributeNamespace, setAttributeName, setAttributeNamespaceaddNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefixappendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public Attribute(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
Attribute instance from the given Element node.element - An Attribute element.org.w3c.dom.DOMException
public Attribute(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
Attribute instance from the given Element node.element - An Attribute element.systemId - The URI string system ID for the Action.org.w3c.dom.DOMException
public Attribute(org.w3c.dom.Document owner)
throws org.w3c.dom.DOMException
Attribute instance.owner - The owner document of the new Attribute.org.w3c.dom.DOMExceptionpublic void addAttributeValue(java.lang.String attributeValue)
attributeValue - The String value of the attribute.public java.util.List getAttributeValues()
List containing String values, or an empty List if none has been added.