public class StringAttributeValue extends java.lang.Object implements CustomAttributeValue
| Constructor and Description |
|---|
StringAttributeValue(java.lang.String 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(java.lang.String value)
Sets the value.
|
java.lang.String |
toString() |
public StringAttributeValue(java.lang.String value)
value - public 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(java.lang.String value)
value - the new valuepublic 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