public class JsonArrayValueDeserializer extends AbstractValueDeserializer implements IValueDeserializer
Modifier | Constructor and Description |
---|---|
protected |
JsonArrayValueDeserializer(com.fasterxml.jackson.databind.node.ArrayNode array)
Constructor for a serializer.
|
Modifier and Type | Method and Description |
---|---|
static JsonArrayValueDeserializer |
create(com.fasterxml.jackson.databind.node.ArrayNode array)
Factory method to create a json value deserializer.
|
boolean |
getBoolean()
Retrieves a
boolean value from the underlying data source. |
byte |
getByte()
Retrieves a
byte value from the underlying data source. |
char |
getChar()
Retrieves a
char value from the underlying data source. |
double |
getDouble()
Retrieves a
double value from the underlying data source. |
<T extends java.lang.Enum<T>> |
getEnumeration(java.lang.Class<T> clazz)
Retrieves a
Enumeration value from the underlying data source. |
float |
getFloat()
Retrieves a
float value from the underlying data source. |
int |
getInt()
Retrieves an
int value from the underlying data source. |
long |
getLong()
Retrieves a
long value from the underlying data source. |
short |
getShort()
Retrieves a
short value from the underlying data source. |
java.lang.String |
getString()
Retrieves a
String value from the underlying data source. |
enumerationValueOf
protected JsonArrayValueDeserializer(com.fasterxml.jackson.databind.node.ArrayNode array)
array
- input array nodepublic static JsonArrayValueDeserializer create(com.fasterxml.jackson.databind.node.ArrayNode array)
array
- input array nodepublic boolean getBoolean()
IValueDeserializer
boolean
value from the underlying data source.getBoolean
in interface IValueDeserializer
public byte getByte() throws java.lang.NumberFormatException
IValueDeserializer
byte
value from the underlying data source.getByte
in interface IValueDeserializer
java.lang.NumberFormatException
- on format errorspublic char getChar()
IValueDeserializer
char
value from the underlying data source.getChar
in interface IValueDeserializer
public short getShort() throws java.lang.NumberFormatException
IValueDeserializer
short
value from the underlying data source.getShort
in interface IValueDeserializer
java.lang.NumberFormatException
- on format errorspublic int getInt() throws java.lang.NumberFormatException
IValueDeserializer
int
value from the underlying data source.getInt
in interface IValueDeserializer
java.lang.NumberFormatException
- on format errorspublic long getLong() throws java.lang.NumberFormatException
IValueDeserializer
long
value from the underlying data source.getLong
in interface IValueDeserializer
java.lang.NumberFormatException
- on format errorspublic float getFloat() throws java.lang.NumberFormatException
IValueDeserializer
float
value from the underlying data source.getFloat
in interface IValueDeserializer
java.lang.NumberFormatException
- on format errorspublic double getDouble() throws java.lang.NumberFormatException
IValueDeserializer
double
value from the underlying data source.getDouble
in interface IValueDeserializer
java.lang.NumberFormatException
- on format errorspublic java.lang.String getString()
IValueDeserializer
String
value from the underlying data source.getString
in interface IValueDeserializer
public <T extends java.lang.Enum<T>> T getEnumeration(java.lang.Class<T> clazz) throws RecordInstantiationException
IValueDeserializer
Enumeration
value from the underlying data source.getEnumeration
in interface IValueDeserializer
T
- the corresponding enumeration typeclazz
- enumeration type to be usedRecordInstantiationException
- in case the received ordinal does not exist in the specified enumeration typeCopyright 2020 Kieker Project, http://kieker-monitoring.net