Class AbstractAnyOfDeserializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.jsontype.TypeDeserializer
-
- com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase
-
- com.fasterxml.jackson.databind.jsontype.impl.AsArrayTypeDeserializer
-
- com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer
-
- com.syntifi.near.api.jackson.deserializer.AbstractAnyOfDeserializer
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
PermissionDeserializer
public abstract class AbstractAnyOfDeserializer extends com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer
- Since:
- 0.0.1
- Author:
- Alexandre Carvalho, Andre Bertolace
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAnyOfDeserializer(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)
protected
AbstractAnyOfDeserializer(com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer src, com.fasterxml.jackson.databind.BeanProperty property)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Object
deserializeTypedFromObject(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt)
protected abstract java.lang.Class<?>
getClassByName(java.lang.String classType)
Method that returns the instance of the found typeprotected 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, forProperty, 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
-
-
-
-
Constructor Detail
-
AbstractAnyOfDeserializer
protected AbstractAnyOfDeserializer(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)
-
AbstractAnyOfDeserializer
protected AbstractAnyOfDeserializer(com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer src, com.fasterxml.jackson.databind.BeanProperty property)
-
-
Method Detail
-
deserializeTypedFromObject
public java.lang.Object deserializeTypedFromObject(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws java.io.IOException
- Overrides:
deserializeTypedFromObject
in classcom.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer
- Throws:
java.io.IOException
-
getTypeNode
protected com.fasterxml.jackson.databind.JsonNode getTypeNode(com.fasterxml.jackson.databind.JsonNode currentNode)
Returns the node which contains the type key. Override if you have a child node which holds the type information.- Parameters:
currentNode
- the current deserialization node- Returns:
- node which contains the type key.
-
getClassByName
protected abstract java.lang.Class<?> getClassByName(java.lang.String classType) throws NoSuchTypeException
Method that returns the instance of the found type- Parameters:
classType
- the name of the class type- Returns:
Class
of the type- Throws:
NoSuchTypeException
- no such type found
-
-