java.lang.Object
tools.jackson.databind.deser.ReadableObjectId
Simple value container for containing information about single Object Id
during deserialization
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Objectprotected final ObjectIdGenerator.IdKeyprotected LinkedList<ReadableObjectId.Referring>protected ObjectIdResolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendReferring(ReadableObjectId.Referring currentReferring) voidbindItem(DeserializationContext ctxt, Object ob) Method called to assign actual POJO to which ObjectId refers to: will also handle referring properties, if any, by assigning POJO.getKey()Allow access to the resolver in case anybody wants to use it directly, for examples fromDeserializationContextExt.tryToResolveUnresolvedObjectId(tools.jackson.databind.deser.ReadableObjectId).booleanresolve()voidsetResolver(ObjectIdResolver resolver) toString()booleanMethod called byDeserializationContextat the end of deserialization if this Object Id was not resolved during normal processing.
-
Field Details
-
_item
- Since:
- 2.8 (with this name, formerly `public Object item`)
-
_key
-
_referringProperties
-
_resolver
-
-
Constructor Details
-
ReadableObjectId
-
-
Method Details
-
setResolver
-
getKey
-
appendReferring
-
bindItem
Method called to assign actual POJO to which ObjectId refers to: will also handle referring properties, if any, by assigning POJO.- Throws:
JacksonException
-
resolve
-
hasReferringProperties
public boolean hasReferringProperties() -
referringProperties
-
tryToResolveUnresolved
Method called byDeserializationContextat the end of deserialization if this Object Id was not resolved during normal processing. Call is made to allow custom implementations to use alternative resolution strategies; currently the only way to make use of this functionality is by sub-classingReadableObjectIdand overriding this method.Default implementation simply returns
falseto indicate that resolution attempt did not succeed.- Returns:
- True, if resolution succeeded (and no error needs to be reported); false to indicate resolution did not succeed.
- Since:
- 2.6
-
getResolver
Allow access to the resolver in case anybody wants to use it directly, for examples fromDeserializationContextExt.tryToResolveUnresolvedObjectId(tools.jackson.databind.deser.ReadableObjectId).- Returns:
- The registered resolver
- Since:
- 2.7
-
toString
-