Package org.camunda.spin.xml
Class SpinXmlAttribute
- java.lang.Object
-
- org.camunda.spin.Spin<T>
-
- org.camunda.spin.xml.SpinXmlNode<SpinXmlAttribute>
-
- org.camunda.spin.xml.SpinXmlAttribute
-
- Direct Known Subclasses:
DomXmlAttribute
public abstract class SpinXmlAttribute extends SpinXmlNode<SpinXmlAttribute>
An attribute in a tree-oriented XML data format.- Author:
- Sebastian Menski, Daniel Meyer
-
-
Constructor Summary
Constructors Constructor Description SpinXmlAttribute()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract SpinXmlElementremove()Removes the attribute.abstract java.lang.StringtoString()Returns the wrapped XML attribute value as string representation.abstract java.lang.Stringvalue()Returns the value of the attribute asString.abstract SpinXmlAttributevalue(java.lang.String value)Sets the value of the attribute.abstract voidwriteToWriter(java.io.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
-
-
-
-
Method Detail
-
value
public abstract java.lang.String value()
Returns the value of the attribute asString.- Returns:
- the string value of the attribute
-
value
public abstract SpinXmlAttribute value(java.lang.String 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
public abstract SpinXmlElement remove()
Removes the attribute.- Returns:
- the wrapped owner
tree element
-
toString
public abstract java.lang.String toString()
Returns the wrapped XML attribute value as string representation.- Specified by:
toStringin classSpin<SpinXmlAttribute>- Returns:
- the string representation
-
writeToWriter
public abstract void writeToWriter(java.io.Writer writer)
Writes the wrapped XML attribute value to an existing writer.- Specified by:
writeToWriterin classSpin<SpinXmlAttribute>- Parameters:
writer- the writer to write to
-
-