Class ReadableObjectId
- java.lang.Object
 - 
- com.fasterxml.jackson.databind.deser.impl.ReadableObjectId
 
 
- 
public class ReadableObjectId extends java.lang.ObjectSimple value container for containing information about single Object Id during deserialization 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReadableObjectId.Referring 
- 
Constructor Summary
Constructors Constructor Description ReadableObjectId(ObjectIdGenerator.IdKey key) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendReferring(ReadableObjectId.Referring currentReferring)voidbindItem(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.ObjectIdGenerator.IdKeygetKey()ObjectIdResolvergetResolver()Allow access to the resolver in case anybody wants to use it directly, for examples fromDefaultDeserializationContext.tryToResolveUnresolvedObjectId(com.fasterxml.jackson.databind.deser.impl.ReadableObjectId).booleanhasReferringProperties()java.util.Iterator<ReadableObjectId.Referring>referringProperties()java.lang.Objectresolve()voidsetResolver(ObjectIdResolver resolver)java.lang.StringtoString()booleantryToResolveUnresolved(DeserializationContext ctxt)Method called byDeserializationContextat the end of deserialization if this Object Id was not resolved during normal processing. 
 - 
 
- 
- 
Constructor Detail
- 
ReadableObjectId
public ReadableObjectId(ObjectIdGenerator.IdKey key)
 
 - 
 
- 
Method Detail
- 
setResolver
public void setResolver(ObjectIdResolver resolver)
 
- 
getKey
public ObjectIdGenerator.IdKey getKey()
 
- 
appendReferring
public void appendReferring(ReadableObjectId.Referring currentReferring)
 
- 
bindItem
public void bindItem(java.lang.Object ob) throws java.io.IOExceptionMethod called to assign actual POJO to which ObjectId refers to: will also handle referring properties, if any, by assigning POJO.- Throws:
 java.io.IOException
 
- 
resolve
public java.lang.Object resolve()
 
- 
hasReferringProperties
public boolean hasReferringProperties()
 
- 
referringProperties
public java.util.Iterator<ReadableObjectId.Referring> referringProperties()
 
- 
tryToResolveUnresolved
public boolean tryToResolveUnresolved(DeserializationContext ctxt)
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
public 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
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -