Class IasValueJsonPojo

java.lang.Object
org.eso.ias.types.IasValueJsonPojo

public class IasValueJsonPojo extends Object
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 (@see JsonInclude.Include)
  • replace Long timestamps with ISO-8601 strings
Timestamps are represented as strings (ISO-8601)
Author:
acaproni
  • Constructor Details

    • IasValueJsonPojo

      public IasValueJsonPojo()
      Empty constructor
    • IasValueJsonPojo

      public IasValueJsonPojo(IASValue<?> iasValue)
      Constructor
      Parameters:
      iasValue - The IASValue
  • Method Details

    • getValue

      public String getValue()
    • setValue

      public void setValue(String value)
    • getMode

      public OperationalMode getMode()
    • setMode

      public void setMode(OperationalMode mode)
    • getFullRunningId

      public String getFullRunningId()
    • setFullRunningId

      public void setFullRunningId(String fullRunningId)
    • getValueType

      public IASTypes getValueType()
    • setValueType

      public void setValueType(IASTypes valueType)
    • getIasValidity

      public IasValidity getIasValidity()
    • setIasValidity

      public void setIasValidity(IasValidity iasValidity)
    • getReadFromMonSysTStamp

      public String getReadFromMonSysTStamp()
    • getProductionTStamp

      public String getProductionTStamp()
    • getSentToConverterTStamp

      public String getSentToConverterTStamp()
    • getReceivedFromPluginTStamp

      public String getReceivedFromPluginTStamp()
    • getConvertedProductionTStamp

      public String getConvertedProductionTStamp()
    • getSentToBsdbTStamp

      public String getSentToBsdbTStamp()
    • getReadFromBsdbTStamp

      public String getReadFromBsdbTStamp()
    • toIasValue

      public IASValue<?> toIasValue()
    • getDepsFullRunningIds

      public Set<String> getDepsFullRunningIds()
    • setDepsFullRunningIds

      public void setDepsFullRunningIds(Set<String> dependentsFullRuningIds)
    • getProps

      public Map<String,String> getProps()
    • setProps

      public void setProps(Map<String,String> props)