Class CLValueDeserializer

  • All Implemented Interfaces:
    java.io.Serializable

    public class CLValueDeserializer
    extends AbstractAnyOfDeserializer
    Core Deserializer for the CLValue property. This deserializer is used by the CLValueResolver to return the correct CLType object in Java depending on the cl_type sent over json
    Since:
    0.0.1
    See Also:
    AbstractCLValue, Serialized Form
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer

        _inclusion, _msgForMissingId
      • Fields inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase

        _baseType, _defaultImpl, _defaultImplDeserializer, _deserializers, _idResolver, _property, _typeIdVisible, _typePropertyName
    • Constructor Summary

      Constructors 
      Constructor Description
      CLValueDeserializer​(com.fasterxml.jackson.databind.JavaType bt, com.fasterxml.jackson.databind.jsontype.TypeIdResolver idRes, java.lang.String typePropertyName, boolean typeIdVisible, com.fasterxml.jackson.databind.JavaType defaultImpl)  
      CLValueDeserializer​(com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer src, com.fasterxml.jackson.databind.BeanProperty property)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.databind.jsontype.TypeDeserializer forProperty​(com.fasterxml.jackson.databind.BeanProperty prop)  
      protected java.lang.Class<?> getClassByName​(java.lang.String anyOfType)
      Method that returns the instance of the found type
      protected com.fasterxml.jackson.databind.JsonNode getTypeNode​(com.fasterxml.jackson.databind.JsonNode currentNode)
      Returns the node which contains the type key.
      • Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer

        _deserializeTypedForId, _deserializeTypedUsingDefaultImpl, _deserializeTypedUsingDefaultImpl, deserializeTypedFromAny, getTypeInclusion
      • Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.AsArrayTypeDeserializer

        _deserialize, _locateTypeId, _usesExternalId, deserializeTypedFromArray, deserializeTypedFromScalar
      • Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase

        _deserializeWithNativeTypeId, _deserializeWithNativeTypeId, _findDefaultImplDeserializer, _findDeserializer, _handleMissingTypeId, _handleUnknownTypeId, baseType, baseTypeName, getDefaultImpl, getPropertyName, getTypeIdResolver, hasDefaultImpl, toString
      • Methods inherited from class com.fasterxml.jackson.databind.jsontype.TypeDeserializer

        deserializeIfNatural, deserializeIfNatural
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CLValueDeserializer

        public CLValueDeserializer​(com.fasterxml.jackson.databind.JavaType bt,
                                   com.fasterxml.jackson.databind.jsontype.TypeIdResolver idRes,
                                   java.lang.String typePropertyName,
                                   boolean typeIdVisible,
                                   com.fasterxml.jackson.databind.JavaType defaultImpl)
      • CLValueDeserializer

        public CLValueDeserializer​(com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer src,
                                   com.fasterxml.jackson.databind.BeanProperty property)
    • Method Detail

      • forProperty

        public com.fasterxml.jackson.databind.jsontype.TypeDeserializer forProperty​(com.fasterxml.jackson.databind.BeanProperty prop)
        Overrides:
        forProperty in class com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer
      • getTypeNode

        protected com.fasterxml.jackson.databind.JsonNode getTypeNode​(com.fasterxml.jackson.databind.JsonNode currentNode)
        Description copied from class: AbstractAnyOfDeserializer
        Returns the node which contains the type key. Override if you have a child node which holds the type information.
        Overrides:
        getTypeNode in class AbstractAnyOfDeserializer
        Parameters:
        currentNode - the current deserialization node
        Returns:
        node which contains the type key.