public abstract class Spin<T extends Spin<?>>
extends java.lang.Object
| Constructor and Description |
|---|
Spin() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getDataFormatName()
Provides the name of the dataformat used by this spin.
|
static SpinJsonNode |
JSON(java.lang.Object input)
Creates a spin wrapper for a data input.
|
abstract <C> C |
mapTo(java.lang.Class<C> type)
Maps the wrapped object to an instance of a java class.
|
abstract <C> C |
mapTo(java.lang.String type)
Maps the wrapped object to a java object.
|
static <T extends Spin<?>> |
S(java.lang.Object input)
Creates a spin wrapper for a data input.
|
static <T extends Spin<?>> |
S(java.lang.Object input,
DataFormat<T> format)
Creates a spin wrapper for a data input of a given data format.
|
static <T extends Spin<?>> |
S(java.lang.Object input,
java.lang.String dataFormatName)
Creates a spin wrapper for a data input of a given data format.
|
abstract java.lang.String |
toString()
Returns the wrapped object as string representation.
|
abstract java.lang.Object |
unwrap()
Return the wrapped object.
|
abstract void |
writeToWriter(java.io.Writer writer)
Writes the wrapped object to a existing writer.
|
static SpinXmlElement |
XML(java.lang.Object input)
Creates a spin wrapper for a data input.
|
public static <T extends Spin<?>> T S(java.lang.Object input, DataFormat<T> format)
input - the input to wrapformat - the data format of the inputjava.lang.IllegalArgumentException - in case an argument of illegal type is provided (such as 'null')public static <T extends Spin<?>> T S(java.lang.Object input, java.lang.String dataFormatName)
input - the input to wrapdataFormatName - the data format name of the inputjava.lang.IllegalArgumentException - in case an argument of illegal type is provided (such as 'null')public static <T extends Spin<?>> T S(java.lang.Object input)
input - the input to wrapjava.lang.IllegalArgumentException - in case an argument of illegal type is provided (such as 'null')public static SpinXmlElement XML(java.lang.Object input)
input - the input to wrapjava.lang.IllegalArgumentException - in case an argument of illegal type is provided (such as 'null')public static SpinJsonNode JSON(java.lang.Object input)
input - the input to wrapjava.lang.IllegalArgumentException - in case an argument of illegal type is provided (such as 'null')public abstract java.lang.String getDataFormatName()
public abstract java.lang.Object unwrap()
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic abstract void writeToWriter(java.io.Writer writer)
writer - the writer to write topublic abstract <C> C mapTo(java.lang.Class<C> type)
type - the java class to map topublic abstract <C> C mapTo(java.lang.String type)
type - the class name to map toCopyright © 2014–2022 Camunda Services GmbH. All rights reserved.