public class AttributeMap
extends java.lang.Object
Constructor and Description |
---|
AttributeMap()
Creates a new AttributeMap object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(javax.xml.namespace.QName name)
Gets an attribute from this AttributeMap specified by its QName.
|
java.util.Collection |
names()
Get the list of valid QNames for all the attributes in this AttributeMap.
|
java.util.Collection |
names(java.lang.String nsURI)
Get a list of valid QNames of the same namespace URI for all the attributes in this AttributeMap.
|
void |
setAttribute(javax.xml.namespace.QName name, java.lang.Object attribute)
Adds an attribute to this AttributeMap or replace an existing attribute with the same QName.
|
public java.lang.Object getAttribute(javax.xml.namespace.QName name)
name
- The qualified name of this attribute (namespace and local part)public void setAttribute(javax.xml.namespace.QName name, java.lang.Object attribute)
name
- The qualified name of this attribute (namespace and local part)attribute
- An object representing the value of this attribute. This object is expected to be a String.public java.util.Collection names()
public java.util.Collection names(java.lang.String nsURI)
nsURI
- A namespace URI.