Class ReadableObjectId
java.lang.Object
com.fasterxml.jackson.databind.deser.impl.ReadableObjectId
Simple value container for containing information about single Object Id
during deserialization
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object
protected final com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey
protected LinkedList
<ReadableObjectId.Referring> protected com.fasterxml.jackson.annotation.ObjectIdResolver
-
Constructor Summary
ConstructorsConstructorDescriptionReadableObjectId
(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey key) -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendReferring
(ReadableObjectId.Referring currentReferring) void
Method called to assign actual POJO to which ObjectId refers to: will also handle referring properties, if any, by assigning POJO.com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey
getKey()
com.fasterxml.jackson.annotation.ObjectIdResolver
Allow access to the resolver in case anybody wants to use it directly, for examples fromDefaultDeserializationContext.tryToResolveUnresolvedObjectId(com.fasterxml.jackson.databind.deser.impl.ReadableObjectId)
.boolean
resolve()
void
setResolver
(com.fasterxml.jackson.annotation.ObjectIdResolver resolver) toString()
boolean
Method called byDeserializationContext
at 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
protected final com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey _key -
_referringProperties
-
_resolver
protected com.fasterxml.jackson.annotation.ObjectIdResolver _resolver
-
-
Constructor Details
-
ReadableObjectId
public ReadableObjectId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey key)
-
-
Method Details
-
setResolver
public void setResolver(com.fasterxml.jackson.annotation.ObjectIdResolver resolver) -
getKey
public com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey 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:
IOException
-
resolve
-
hasReferringProperties
public boolean hasReferringProperties() -
referringProperties
-
tryToResolveUnresolved
Method called byDeserializationContext
at 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-classingReadableObjectId
and overriding this method.Default implementation simply returns
false
to 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
public com.fasterxml.jackson.annotation.ObjectIdResolver getResolver()Allow access to the resolver in case anybody wants to use it directly, for examples fromDefaultDeserializationContext.tryToResolveUnresolvedObjectId(com.fasterxml.jackson.databind.deser.impl.ReadableObjectId)
.- Returns:
- The registered resolver
- Since:
- 2.7
-
toString
-