public abstract class SpinXmlNode<T extends SpinXmlNode<?>> extends Spin<T>
| Constructor and Description |
|---|
SpinXmlNode() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
hasNamespace(String namespace)
Checks if the node has a given namespace.
|
abstract boolean |
hasPrefix(String prefix)
Checks if the node has a given prefix.
|
abstract <C> C |
mapTo(Class<C> type)
Maps XML into specific class
|
abstract <C> C |
mapTo(String canonicalName)
Maps Xml into specific class
|
abstract String |
name()
Returns the local name of the node without namespace or prefix.
|
abstract String |
namespace()
Returns the namespace uri of the node and not the prefix.
|
abstract String |
prefix()
Returns the prefix of the node and not the namespace uri.
|
getDataFormatName, JSON, S, S, S, toString, unwrap, writeToWriter, XMLpublic abstract String name()
public abstract String namespace()
public abstract String prefix()
public abstract boolean hasPrefix(String prefix)
prefix - the prefix to checkpublic abstract boolean hasNamespace(String namespace)
namespace - the namespace to checkpublic abstract <C> C mapTo(Class<C> type)
mapTo in class Spin<T extends SpinXmlNode<?>>type - Class to which the Xml should be mappedSpinDataFormatException - in case the input cannot be mapped to class for several reasonspublic abstract <C> C mapTo(String canonicalName)
mapTo in class Spin<T extends SpinXmlNode<?>>canonicalName - canonical name of the classSpinDataFormatException - in case the input cannot be mapped to class for several reasonsCopyright © 2014–2020 Camunda Services GmbH. All rights reserved.