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