public class ReadableObjectId
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ReadableObjectId.Referring |
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey |
_key |
protected java.util.LinkedList<ReadableObjectId.Referring> |
_referringProperties |
protected com.fasterxml.jackson.annotation.ObjectIdResolver |
_resolver |
java.lang.Object |
id
Deprecated.
|
java.lang.Object |
item
Deprecated.
Change visibility, if possible; prefer using
resolve() , which is able
to handle external id resolving mechanism. |
Constructor and Description |
---|
ReadableObjectId(java.lang.Object id)
Deprecated.
|
ReadableObjectId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey key) |
Modifier and Type | Method and Description |
---|---|
void |
appendReferring(ReadableObjectId.Referring currentReferring) |
void |
bindItem(java.lang.Object ob)
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 |
getResolver()
Allow access to the resolver in case anybody wants to use it directly, for
examples from
DefaultDeserializationContext.tryToResolveUnresolvedObjectId(com.fasterxml.jackson.databind.deser.impl.ReadableObjectId) . |
boolean |
hasReferringProperties() |
java.util.Iterator<ReadableObjectId.Referring> |
referringProperties() |
java.lang.Object |
resolve() |
void |
setResolver(com.fasterxml.jackson.annotation.ObjectIdResolver resolver) |
java.lang.String |
toString() |
boolean |
tryToResolveUnresolved(DeserializationContext ctxt)
Method called by
DeserializationContext at the end of deserialization
if this Object Id was not resolved during normal processing. |
@Deprecated public java.lang.Object item
resolve()
, which is able
to handle external id resolving mechanism.@Deprecated public final java.lang.Object id
protected final com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey _key
protected java.util.LinkedList<ReadableObjectId.Referring> _referringProperties
protected com.fasterxml.jackson.annotation.ObjectIdResolver _resolver
@Deprecated public ReadableObjectId(java.lang.Object id)
public ReadableObjectId(com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey key)
public void setResolver(com.fasterxml.jackson.annotation.ObjectIdResolver resolver)
public com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey getKey()
public void appendReferring(ReadableObjectId.Referring currentReferring)
public void bindItem(java.lang.Object ob) throws java.io.IOException
java.io.IOException
public java.lang.Object resolve()
public boolean hasReferringProperties()
public java.util.Iterator<ReadableObjectId.Referring> referringProperties()
public boolean tryToResolveUnresolved(DeserializationContext ctxt)
DeserializationContext
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-classing
ReadableObjectId
and overriding this method.
Default implementation simply returns false
to indicate that resolution
attempt did not succeed.
public com.fasterxml.jackson.annotation.ObjectIdResolver getResolver()
DefaultDeserializationContext.tryToResolveUnresolvedObjectId(com.fasterxml.jackson.databind.deser.impl.ReadableObjectId)
.public java.lang.String toString()
toString
in class java.lang.Object