Class ElementDeserializer<ISM extends Element>

  • 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:
    Serialized Form
    • 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 org.gcube.com.fasterxml.jackson.databind.ObjectMapper mapper
      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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      ISM deserialize​(org.gcube.com.fasterxml.jackson.core.JsonParser jp, org.gcube.com.fasterxml.jackson.databind.DeserializationContext ctxt)
      Deprecated.
      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)
      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
    • Field Detail

      • mapper

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

      • 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 Detail

      • 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