Class ElementDeserializer<ISM extends Element>

java.lang.Object
org.gcube.com.fasterxml.jackson.databind.JsonDeserializer<T>
org.gcube.com.fasterxml.jackson.databind.deser.std.StdDeserializer<ISM>
org.gcube.informationsystem.serialization.ElementDeserializer<ISM>
Type Parameters:
ISM - The type of the element to deserialize.
All Implemented Interfaces:
Serializable

@Deprecated public class ElementDeserializer<ISM extends Element> extends org.gcube.com.fasterxml.jackson.databind.deser.std.StdDeserializer<ISM>
Deprecated.
This class is no longer in use. It is kept for reference purposes.
A custom Jackson deserializer for Element types that can handle unknown subtypes by falling back to a known supertype.
Author:
Luca Frosini (ISTI - CNR)
See Also:
  • Nested Class Summary

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

    org.gcube.com.fasterxml.jackson.databind.JsonDeserializer.None
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.gcube.com.fasterxml.jackson.databind.ObjectMapper
    Deprecated.
    The object mapper.

    Fields inherited from class org.gcube.com.fasterxml.jackson.databind.deser.std.StdDeserializer

    _valueClass, F_MASK_INT_COERCIONS
  • Constructor Summary

    Constructors
    Constructor
    Description
    ElementDeserializer(Class<ISM> clz, org.gcube.com.fasterxml.jackson.databind.ObjectMapper mapper)
    Deprecated.
    Constructs a new deserializer.
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(org.gcube.com.fasterxml.jackson.core.JsonParser jp, org.gcube.com.fasterxml.jackson.databind.DeserializationContext ctxt)
    Deprecated.
    deserializeWithType(org.gcube.com.fasterxml.jackson.core.JsonParser jp, org.gcube.com.fasterxml.jackson.databind.DeserializationContext ctxt, org.gcube.com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer)
    Deprecated.

    Methods inherited from class org.gcube.com.fasterxml.jackson.databind.deser.std.StdDeserializer

    _coerceIntegral, _deserializeFromEmpty, _failDoubleToIntCoercion, _hasTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _parseBoolean, _parseBooleanFromInt, _parseBooleanFromOther, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, _parseString, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, getValueClass, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble

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

    deserialize, findBackReference, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer

    Methods inherited from class java.lang.Object

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

    • mapper

      protected final org.gcube.com.fasterxml.jackson.databind.ObjectMapper mapper
      Deprecated.
      The object mapper.
  • Constructor Details

    • ElementDeserializer

      public ElementDeserializer(Class<ISM> clz, org.gcube.com.fasterxml.jackson.databind.ObjectMapper mapper)
      Deprecated.
      Constructs a new deserializer.
      Parameters:
      clz - The class of the element.
      mapper - The object mapper.
  • Method Details

    • deserializeWithType

      public Object deserializeWithType(org.gcube.com.fasterxml.jackson.core.JsonParser jp, org.gcube.com.fasterxml.jackson.databind.DeserializationContext ctxt, org.gcube.com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) throws IOException
      Deprecated.
      Overrides:
      deserializeWithType in class org.gcube.com.fasterxml.jackson.databind.deser.std.StdDeserializer<ISM extends Element>
      Throws:
      IOException
    • deserialize

      public ISM deserialize(org.gcube.com.fasterxml.jackson.core.JsonParser jp, org.gcube.com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, org.gcube.com.fasterxml.jackson.core.JsonProcessingException
      Deprecated.
      Specified by:
      deserialize in class org.gcube.com.fasterxml.jackson.databind.JsonDeserializer<ISM extends Element>
      Throws:
      IOException
      org.gcube.com.fasterxml.jackson.core.JsonProcessingException