public class QNameAttributeValue extends java.lang.Object implements CustomAttributeValue
qualified name.| Constructor and Description |
|---|
QNameAttributeValue() |
QNameAttributeValue(QName value)
Creates a new instance with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
HashMap |
getNamespaces()
Returns the namespaces used within this attribute value.
|
java.lang.Object |
getValue()
Returns the value of the attribute.
|
void |
serialize(XmlSerializer serializer,
QName attributeName)
Serializes this attribute value using the provided
XmlSerializer. |
void |
setValue(QName value)
Sets the value for this attribute.
|
java.lang.String |
toString() |
public QNameAttributeValue()
public QNameAttributeValue(QName value)
value - the attribute's valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic HashMap getNamespaces()
CustomAttributeValuegetNamespaces in interface CustomAttributeValuepublic java.lang.Object getValue()
CustomAttributeValuegetValue in interface CustomAttributeValuepublic void setValue(QName value)
value - the new value for the attributepublic void serialize(XmlSerializer serializer, QName attributeName) throws java.io.IOException
CustomAttributeValueXmlSerializer. The value is assigned
to an attribute with the specified qualified name attributeName.serialize in interface CustomAttributeValueserializer - the serializer to write the attribute value toattributeName - the name of the attribute to assign this attribute value tojava.io.IOException - if an error occurs during writing to the serializer