Class EntityDeserializer

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<Entity>
de.fraunhofer.iosb.ilt.frostclient.json.deserialize.EntityDeserializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider

public class EntityDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<Entity>
Handles deserialization of Entity objects.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    com.fasterxml.jackson.databind.JsonDeserializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityDeserializer(ModelRegistry modelRegistry, EntityType entityType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctxt)
     
    deserializeFull(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctxt)
    Deserialises an Entity, consuming the Object start and end tokens.
    getInstance(ModelRegistry modelRegistry, EntityType entityType)
     

    Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getInstance

      public static EntityDeserializer getInstance(ModelRegistry modelRegistry, EntityType entityType)
    • deserializeFull

      public Entity deserializeFull(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
      Deserialises an Entity, consuming the Object start and end tokens.
      Parameters:
      parser - The parser to fetch tokens from.
      ctxt - The context to fetch settings from.
      Returns:
      The deserialised Entity.
      Throws:
      IOException - If deserialisation fails.
    • deserialize

      public Entity deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<Entity>
      Throws:
      IOException