public class DomXmlAttribute extends SpinXmlAttribute
| Modifier and Type | Field and Description |
|---|---|
protected Attr |
attributeNode |
protected DomXmlDataFormat |
dataFormat |
| Constructor and Description |
|---|
DomXmlAttribute(Attr attributeNode,
DomXmlDataFormat dataFormat)
Create a new wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDataFormatName()
Provides the name of the dataformat used by this spin.
|
boolean |
hasNamespace(String namespace)
Checks if the node has a given namespace.
|
boolean |
hasPrefix(String prefix)
Checks if the node has a given prefix.
|
<C> C |
mapTo(Class<C> javaClass)
Maps XML into specific class
|
<C> C |
mapTo(String javaClass)
Maps Xml into specific class
|
String |
name()
Returns the local name of the node without namespace or prefix.
|
String |
namespace()
Returns the namespace uri of the node and not the prefix.
|
String |
prefix()
Returns the prefix of the node and not the namespace uri.
|
SpinXmlElement |
remove()
Removes the attribute.
|
String |
toString()
Returns the wrapped XML attribute value as string representation.
|
Attr |
unwrap()
Return the wrapped object.
|
String |
value()
Returns the value of the attribute as
String. |
SpinXmlAttribute |
value(String value)
Sets the value of the attribute.
|
void |
writeToWriter(Writer writer)
Writes the wrapped XML attribute value to an existing writer.
|
protected final Attr attributeNode
protected final DomXmlDataFormat dataFormat
public DomXmlAttribute(Attr attributeNode, DomXmlDataFormat dataFormat)
attributeNode - the dom xml attribute to wrapdataFormat - the xml dom data formatpublic String getDataFormatName()
SpingetDataFormatName in class Spin<SpinXmlAttribute>public Attr unwrap()
Spinunwrap in class Spin<SpinXmlAttribute>public String name()
SpinXmlNodename in class SpinXmlNode<SpinXmlAttribute>public String namespace()
SpinXmlNodenamespace in class SpinXmlNode<SpinXmlAttribute>public String prefix()
SpinXmlNodeprefix in class SpinXmlNode<SpinXmlAttribute>public boolean hasPrefix(String prefix)
SpinXmlNodehasPrefix in class SpinXmlNode<SpinXmlAttribute>prefix - the prefix to checkpublic boolean hasNamespace(String namespace)
SpinXmlNodehasNamespace in class SpinXmlNode<SpinXmlAttribute>namespace - the namespace to checkpublic String value()
SpinXmlAttributeString.value in class SpinXmlAttributepublic SpinXmlAttribute value(String value)
SpinXmlAttributevalue in class SpinXmlAttributevalue - the value to setpublic SpinXmlElement remove()
SpinXmlAttributeremove in class SpinXmlAttributetree elementpublic String toString()
SpinXmlAttributetoString in class SpinXmlAttributepublic void writeToWriter(Writer writer)
SpinXmlAttributewriteToWriter in class SpinXmlAttributewriter - the writer to write topublic <C> C mapTo(Class<C> javaClass)
SpinXmlNodemapTo in class SpinXmlNode<SpinXmlAttribute>javaClass - Class to which the Xml should be mappedpublic <C> C mapTo(String javaClass)
SpinXmlNodemapTo in class SpinXmlNode<SpinXmlAttribute>javaClass - canonical name of the classCopyright © 2014–2020 Camunda Services GmbH. All rights reserved.