Top Description Inners Fields Constructors Methods
tools.jackson.databind.deser

public abstract Class DeserializationContextExt

extends DeserializationContext
Class Inheritance
Known Direct Subclasses
tools.jackson.databind.deser.DeserializationContextExt.Impl
Imports
java.util.*, .Map.Entry, com.fasterxml.jackson.annotation.ObjectIdGenerator, .ObjectIdGenerator.IdKey, .ObjectIdResolver, tools.jackson.core.*, tools.jackson.databind.*, tools.jackson.databind.cfg.HandlerInstantiator, tools.jackson.databind.deser.ReadableObjectId.Referring, tools.jackson.databind.introspect.Annotated, tools.jackson.databind.util.ClassUtil

Complete DeserializationContext implementation that adds extended API for ObjectMapper (and ObjectReader) to call, as well as implements certain parts that base class has left abstract.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
DeserializationContextExt.Impl

Actual full concrete implementation

Field Summary

Modifier and TypeField and Description
private List<ObjectIdResolver>
protected transient LinkedHashMap<ObjectIdGenerator.IdKey, ReadableObjectId>
Inherited from tools.jackson.databind.DeserializationContext:
_activeView_arrayBuilders_attributes_cache_classIntrospector_config_currentType_dateFormat_factory_featureFlags_injectableValues_objectBuffer_parser_readCapabilities_schema_streamFactory

Constructor Summary

AccessConstructor and Description
protected
DeserializationContextExt(TokenStreamFactory tsf, DeserializerFactory deserializerFactory, DeserializerCache cache, DeserializationConfig config, FormatSchema schema, InjectableValues values)

Constructor that will pass specified deserializer factory and cache: cache may be null (in which case default implementation will be used), factory cannot be null

Method Summary

Modifier and TypeMethod and Description
protected Object
public JsonParser
public DeserializationContextExt
public void
checkUnresolvedObjectId()

Implements abstract tools.jackson.databind.DeserializationContext.checkUnresolvedObjectId.

Method called to ensure that every object id encounter during processing are resolved.

protected ReadableObjectId

Returns:

New ReadableObjectId instance
createReadableObjectId
(ObjectIdGenerator.IdKey
The key to associate with the new ReadableObjectId
key
)

Overridable factory method to create a new instance of ReadableObjectId or its subclass.

public ValueDeserializer<Object>
public ReadableObjectId
findObjectId(Object id, ObjectIdGenerator<?> gen, ObjectIdResolver resolverType)

Implements abstract tools.jackson.databind.DeserializationContext.findObjectId.

Method called to find and return entry corresponding to given Object Id: will add an entry if necessary, and never returns null

public final KeyDeserializer
public Object
readRootValue(JsonParser p, JavaType valueType, ValueDeserializer<Object> deser, Object valueToUpdate)

protected boolean
tryToResolveUnresolvedObjectId(ReadableObjectId roid)

Overridable helper method called to try to resolve otherwise unresolvable ReadableObjectId; and if this succeeds, return true to indicate problem has been resolved in some way, so that caller can avoid reporting it as an error.

Inherited from tools.jackson.databind.DeserializationContext:
_getDateFormat_isCompatible_shapeForTokenbufferAsCopyOfValuebufferForInputBufferingbufferForInputBufferingcanOverrideAccessModifiersclassIntrospectorconstructCalendarconstructSpecializedTypeconstructTypecreateArrayNodecreateObjectNodeextractScalarFromObjectfindClassfindCoercionActionfindCoercionFromBlankStringfindContextualValueDeserializerfindInjectableValuefindKeyDeserializerfindNonContextualValueDeserializerfindPropertyContentTypeDeserializerfindPropertyTypeDeserializerfindRootNamefindRootNamefindRootValueDeserializerfindTypeDeserializerfindTypeDeserializerflushCachedDeserializersgetActiveViewgetAnnotationIntrospectorgetArrayBuildersgetAttributegetBase64VariantgetConfiggetContextualTypegetDatatypeFeaturesgetDefaultPropertyFormatgetDeserializationFeaturesgetFormatReadFeaturesgetLocalegetNodeFactorygetParsergetSchemagetStreamReadFeaturesgetTimeZonegetTypeFactoryhandleBadMergehandleInstantiationProblemhandleMissingInstantiatorhandleMissingTypeIdhandlePrimaryContextualizationhandleSecondaryContextualizationhandleUnexpectedTokenhandleUnexpectedTokenhandleUnexpectedTokenhandleUnknownPropertyhandleUnknownTypeIdhandleWeirdKeyhandleWeirdNativeValuehandleWeirdNumberValuehandleWeirdStringValuehasDeserializationFeatureshasExplicitDeserializerForhasSomeOfFeaturesinstantiationExceptioninstantiationExceptionintrospectBeanDescriptionintrospectBeanDescriptionForBuilderintrospectBeanDescriptionForCreationintrospectBeanDescriptionForCreationinvalidTypeIdExceptionisEnabledisEnabledisEnabledisEnabledlazyIntrospectBeanDescriptionForBuilderlazyIntrospectBeanDescriptionForCreationleaseObjectBuffermissingInjectableValueExceptionmissingTypeIdExceptionparseDatereadPropertyValuereadPropertyValuereadTreereadTreeAsValuereadTreeAsValuereadValuereadValuereadValuereadValuereportBadCoercionreportBadDefinitionreportBadPropertyDefinitionreportBadPropertyDefinitionreportBadTypeDefinitionreportInputMismatchreportInputMismatchreportInputMismatchreportInputMismatchreportPropertyInputMismatchreportPropertyInputMismatchreportTrailingTokensreportUnresolvedObjectIdreportWrongTokenExceptionreportWrongTokenExceptionreportWrongTokenExceptionreturnObjectBuffersetAttributestreamReadConstraintstokenStreamFactoryweirdKeyExceptionweirdNativeValueExceptionweirdNumberExceptionweirdStringExceptionwrongTokenExceptionwrongTokenException

Field Detail

_objectIdResolversback to summary
private List<ObjectIdResolver> _objectIdResolvers
_objectIdsback to summary
protected transient LinkedHashMap<ObjectIdGenerator.IdKey, ReadableObjectId> _objectIds

Constructor Detail

DeserializationContextExtback to summary
protected DeserializationContextExt(TokenStreamFactory tsf, DeserializerFactory deserializerFactory, DeserializerCache cache, DeserializationConfig config, FormatSchema schema, InjectableValues values)

Constructor that will pass specified deserializer factory and cache: cache may be null (in which case default implementation will be used), factory cannot be null

Method Detail

_unwrapAndDeserializeback to summary
protected Object _unwrapAndDeserialize(JsonParser p, JavaType rootType, ValueDeserializer<Object> deser, Object valueToUpdate) throws JacksonException
assignAndReturnParserback to summary
public JsonParser assignAndReturnParser(JsonParser p)
assignParserback to summary
public DeserializationContextExt assignParser(JsonParser p)
checkUnresolvedObjectIdback to summary
public void checkUnresolvedObjectId() throws UnresolvedForwardReference

Implements abstract tools.jackson.databind.DeserializationContext.checkUnresolvedObjectId.

Doc from tools.jackson.databind.DeserializationContext.checkUnresolvedObjectId.

Method called to ensure that every object id encounter during processing are resolved.

Annotations
@Override
createReadableObjectIdback to summary
protected ReadableObjectId createReadableObjectId(ObjectIdGenerator.IdKey key)

Overridable factory method to create a new instance of ReadableObjectId or its subclass. It is meant to be overridden when custom ReadableObjectId is needed for tryToResolveUnresolvedObjectId. Default implementation simply constructs default ReadableObjectId with given key.

Parameters
key:ObjectIdGenerator.IdKey

The key to associate with the new ReadableObjectId

Returns:ReadableObjectId

New ReadableObjectId instance

deserializerInstanceback to summary
public ValueDeserializer<Object> deserializerInstance(Annotated ann, Object deserDef)

Implements abstract tools.jackson.databind.DeserializationContext.deserializerInstance.

Annotations
@SuppressWarnings:unchecked
@Override
findObjectIdback to summary
public ReadableObjectId findObjectId(Object id, ObjectIdGenerator<?> gen, ObjectIdResolver resolverType)

Implements abstract tools.jackson.databind.DeserializationContext.findObjectId.

Doc from tools.jackson.databind.DeserializationContext.findObjectId.

Method called to find and return entry corresponding to given Object Id: will add an entry if necessary, and never returns null

Annotations
@Override
keyDeserializerInstanceback to summary
public final KeyDeserializer keyDeserializerInstance(Annotated ann, Object deserDef)

Implements abstract tools.jackson.databind.DeserializationContext.keyDeserializerInstance.

Annotations
@Override
readRootValueback to summary
public Object readRootValue(JsonParser p, JavaType valueType, ValueDeserializer<Object> deser, Object valueToUpdate) throws JacksonException
tryToResolveUnresolvedObjectIdback to summary
protected boolean tryToResolveUnresolvedObjectId(ReadableObjectId roid)

Overridable helper method called to try to resolve otherwise unresolvable ReadableObjectId; and if this succeeds, return true to indicate problem has been resolved in some way, so that caller can avoid reporting it as an error.

Default implementation simply calls ReadableObjectId#tryToResolveUnresolved and returns whatever it returns.

tools.jackson.databind.deser back to summary

public final Class DeserializationContextExt.Impl

extends DeserializationContextExt
Class Inheritance

Actual full concrete implementation

Field Summary

Inherited from tools.jackson.databind.deser.DeserializationContextExt:
_objectIds

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from tools.jackson.databind.deser.DeserializationContextExt:
_unwrapAndDeserializeassignAndReturnParserassignParsercheckUnresolvedObjectIdcreateReadableObjectIddeserializerInstancefindObjectIdkeyDeserializerInstancereadRootValuetryToResolveUnresolvedObjectId

Constructor Detail

Implback to summary
public Impl(TokenStreamFactory tsf, DeserializerFactory deserializerFactory, DeserializerCache cache, DeserializationConfig config, FormatSchema schema, InjectableValues values)