Package org.eso.ias.types
Class IasValueJsonPojo
java.lang.Object
org.eso.ias.types.IasValueJsonPojo
A java pojo to serialize/deserialize
IASValue
objects.
This pojo solves the problem of serializing/deserializing abstract classes with jackson2 and offers setters and getters. The reasons to have this class separated by IASValue are:
- avoid providing setters that would brake the immutability of the
IASValue
- replace Optional.empty() with
null
so that a null value is not serialized in the JSON string (@seeJsonInclude.Include
) - replace Long timestamps with ISO-8601 strings
- Author:
- acaproni
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMode()
getProps()
getValue()
void
setDepsFullRunningIds
(Set<String> dependentsFullRuningIds) void
setFullRunningId
(String fullRunningId) void
setIasValidity
(IasValidity iasValidity) void
setMode
(OperationalMode mode) void
void
void
setValueType
(IASTypes valueType) IASValue<?>
-
Constructor Details
-
IasValueJsonPojo
public IasValueJsonPojo()Empty constructor -
IasValueJsonPojo
Constructor- Parameters:
iasValue
- TheIASValue
-
-
Method Details
-
getValue
-
setValue
-
getMode
-
setMode
-
getFullRunningId
-
setFullRunningId
-
getValueType
-
setValueType
-
getIasValidity
-
setIasValidity
-
getReadFromMonSysTStamp
-
getProductionTStamp
-
getSentToConverterTStamp
-
getReceivedFromPluginTStamp
-
getConvertedProductionTStamp
-
getSentToBsdbTStamp
-
getReadFromBsdbTStamp
-
toIasValue
-
getDepsFullRunningIds
-
setDepsFullRunningIds
-
getProps
-
setProps
-