Package org.camunda.spin.xml
Class SpinXmlAttribute
- Direct Known Subclasses:
DomXmlAttribute
An attribute in a tree-oriented XML data format.
- Author:
- Sebastian Menski, Daniel Meyer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract SpinXmlElement
remove()
Removes the attribute.abstract String
toString()
Returns the wrapped XML attribute value as string representation.abstract String
value()
Returns the value of the attribute asString
.abstract SpinXmlAttribute
Sets the value of the attribute.abstract void
writeToWriter
(Writer writer) Writes the wrapped XML attribute value to an existing writer.Methods inherited from class org.camunda.spin.xml.SpinXmlNode
hasNamespace, hasPrefix, mapTo, mapTo, name, namespace, prefix
-
Constructor Details
-
SpinXmlAttribute
public SpinXmlAttribute()
-
-
Method Details
-
value
Returns the value of the attribute asString
.- Returns:
- the string value of the attribute
-
value
Sets the value of the attribute.- Parameters:
value
- the value to set- Returns:
- the wrapped xml dom attribute
- Throws:
SpinXmlNodeException
- if the value is null
-
remove
Removes the attribute.- Returns:
- the wrapped owner
tree element
-
toString
Returns the wrapped XML attribute value as string representation.- Specified by:
toString
in classSpin<SpinXmlAttribute>
- Returns:
- the string representation
-
writeToWriter
Writes the wrapped XML attribute value to an existing writer.- Specified by:
writeToWriter
in classSpin<SpinXmlAttribute>
- Parameters:
writer
- the writer to write to
-