public class ReadableObjectId extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReadableObjectId.Referring |
Modifier and Type | Field and Description |
---|---|
protected Object |
_item |
protected ObjectIdGenerator.IdKey |
_key |
protected LinkedList<ReadableObjectId.Referring> |
_referringProperties |
protected ObjectIdResolver |
_resolver |
Constructor and Description |
---|
ReadableObjectId(ObjectIdGenerator.IdKey key) |
Modifier and Type | Method and Description |
---|---|
void |
appendReferring(ReadableObjectId.Referring currentReferring) |
void |
bindItem(Object ob)
Method called to assign actual POJO to which ObjectId refers to: will
also handle referring properties, if any, by assigning POJO.
|
ObjectIdGenerator.IdKey |
getKey() |
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() |
Iterator<ReadableObjectId.Referring> |
referringProperties() |
Object |
resolve() |
void |
setResolver(ObjectIdResolver resolver) |
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. |
protected Object _item
protected final ObjectIdGenerator.IdKey _key
protected LinkedList<ReadableObjectId.Referring> _referringProperties
protected ObjectIdResolver _resolver
public ReadableObjectId(ObjectIdGenerator.IdKey key)
public void setResolver(ObjectIdResolver resolver)
public ObjectIdGenerator.IdKey getKey()
public void appendReferring(ReadableObjectId.Referring currentReferring)
public void bindItem(Object ob) throws IOException
IOException
public Object resolve()
public boolean hasReferringProperties()
public 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 ObjectIdResolver getResolver()
DefaultDeserializationContext.tryToResolveUnresolvedObjectId(com.fasterxml.jackson.databind.deser.impl.ReadableObjectId)
.Copyright © 2008–2022 FasterXML. All rights reserved.