Package org.camunda.spin.impl.xml.dom
Class DomXmlAttribute
- java.lang.Object
-
- org.camunda.spin.Spin<T>
-
- org.camunda.spin.xml.SpinXmlNode<SpinXmlAttribute>
-
- org.camunda.spin.xml.SpinXmlAttribute
-
- org.camunda.spin.impl.xml.dom.DomXmlAttribute
-
public class DomXmlAttribute extends SpinXmlAttribute
Wrapper of a xml dom attribute.- Author:
- Sebastian Menski
-
-
Field Summary
Fields Modifier and Type Field Description protected org.w3c.dom.Attr
attributeNode
protected DomXmlDataFormat
dataFormat
-
Constructor Summary
Constructors Constructor Description DomXmlAttribute(org.w3c.dom.Attr attributeNode, DomXmlDataFormat dataFormat)
Create a new wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDataFormatName()
boolean
hasNamespace(java.lang.String namespace)
boolean
hasPrefix(java.lang.String prefix)
<C> C
mapTo(java.lang.Class<C> javaClass)
<C> C
mapTo(java.lang.String javaClass)
java.lang.String
name()
java.lang.String
namespace()
java.lang.String
prefix()
SpinXmlElement
remove()
java.lang.String
toString()
org.w3c.dom.Attr
unwrap()
java.lang.String
value()
SpinXmlAttribute
value(java.lang.String value)
void
writeToWriter(java.io.Writer writer)
-
-
-
Field Detail
-
attributeNode
protected final org.w3c.dom.Attr attributeNode
-
dataFormat
protected final DomXmlDataFormat dataFormat
-
-
Constructor Detail
-
DomXmlAttribute
public DomXmlAttribute(org.w3c.dom.Attr attributeNode, DomXmlDataFormat dataFormat)
Create a new wrapper.- Parameters:
attributeNode
- the dom xml attribute to wrapdataFormat
- the xml dom data format
-
-
Method Detail
-
getDataFormatName
public java.lang.String getDataFormatName()
- Specified by:
getDataFormatName
in classSpin<SpinXmlAttribute>
-
unwrap
public org.w3c.dom.Attr unwrap()
- Specified by:
unwrap
in classSpin<SpinXmlAttribute>
-
name
public java.lang.String name()
- Specified by:
name
in classSpinXmlNode<SpinXmlAttribute>
-
namespace
public java.lang.String namespace()
- Specified by:
namespace
in classSpinXmlNode<SpinXmlAttribute>
-
prefix
public java.lang.String prefix()
- Specified by:
prefix
in classSpinXmlNode<SpinXmlAttribute>
-
hasPrefix
public boolean hasPrefix(java.lang.String prefix)
- Specified by:
hasPrefix
in classSpinXmlNode<SpinXmlAttribute>
-
hasNamespace
public boolean hasNamespace(java.lang.String namespace)
- Specified by:
hasNamespace
in classSpinXmlNode<SpinXmlAttribute>
-
value
public java.lang.String value()
- Specified by:
value
in classSpinXmlAttribute
-
value
public SpinXmlAttribute value(java.lang.String value)
- Specified by:
value
in classSpinXmlAttribute
-
remove
public SpinXmlElement remove()
- Specified by:
remove
in classSpinXmlAttribute
-
toString
public java.lang.String toString()
- Specified by:
toString
in classSpinXmlAttribute
-
writeToWriter
public void writeToWriter(java.io.Writer writer)
- Specified by:
writeToWriter
in classSpinXmlAttribute
-
mapTo
public <C> C mapTo(java.lang.Class<C> javaClass)
- Specified by:
mapTo
in classSpinXmlNode<SpinXmlAttribute>
-
mapTo
public <C> C mapTo(java.lang.String javaClass)
- Specified by:
mapTo
in classSpinXmlNode<SpinXmlAttribute>
-
-