An attribute in an XML element.
Methods
Method | Return type | Brief description |
---|---|---|
getName() | XmlName | Gets the name of this attribute. |
getValue() | String | Gets the value of the XmlAttribute. |
setValue(value) | void | Sets the value of this attribute. |
toXmlString() | String |
Detailed documentation
getValue()
Gets the value of the XmlAttribute.
Return
String
— the value of this attribute. The value is always stored as a
String
even if it is provided as some other type.
setValue(value)
Sets the value of this attribute. The value will be set to the equivalent
of String.valueOf(value)
.
Parameters
Name | Type | Description |
---|---|---|
value | Object |
toXmlString()
Return
String
— this node in string form. For Elements and Documents this will be
the fully converted node in XML string form. For other minor nodes
(like Attributes) this will be in simplified XML fragments like:
foo="bar"