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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SpinXmlElementremove()Removes the attribute.abstract StringtoString()Returns the wrapped XML attribute value as string representation.abstract Stringvalue()Returns the value of the attribute asString.abstract SpinXmlAttributeSets the value of the attribute.abstract voidwriteToWriter(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:
toStringin classSpin<SpinXmlAttribute>- Returns:
- the string representation
-
writeToWriter
Writes the wrapped XML attribute value to an existing writer.- Specified by:
writeToWriterin classSpin<SpinXmlAttribute>- Parameters:
writer- the writer to write to
-