Class ObjectIdReader
- java.lang.Object
 - 
- com.fasterxml.jackson.databind.deser.impl.ObjectIdReader
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
public class ObjectIdReader extends java.lang.Object implements java.io.SerializableObject that knows how to deserialize Object Ids.- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description ObjectIdGenerator<?>generatorBlueprint generator instance: actual instance will be fetched fromSerializerProviderusing this as the key.SettableBeanPropertyidPropertyPropertyNamepropertyNameObjectIdResolverresolver 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectIdReaderconstruct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, JsonDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver)Factory method called byBeanSerializerBasewith the initial information based on standard settings for the type for which serializer is being built.JsonDeserializer<java.lang.Object>getDeserializer()JavaTypegetIdType()booleanisValidReferencePropertyName(java.lang.String name, JsonParser parser)Convenience method, equivalent to calling:readerInstance.generator.isValidReferencePropertyName(name, parser);and used to determine whether Object Ids handled by the underlying generator may be in form of (JSON) Objects.booleanmaySerializeAsObject()Convenience method, equivalent to calling:readerInstance.generator.maySerializeAsObject();and used to determine whether Object Ids handled by the underlying generator may be in form of (JSON) Objects.java.lang.ObjectreadObjectReference(JsonParser jp, DeserializationContext ctxt)Method called to read value that is expected to be an Object Reference (that is, value of an Object Id used to refer to another object). 
 - 
 
- 
- 
Field Detail
- 
propertyName
public final PropertyName propertyName
 
- 
generator
public final ObjectIdGenerator<?> generator
Blueprint generator instance: actual instance will be fetched fromSerializerProviderusing this as the key. 
- 
resolver
public final ObjectIdResolver resolver
 
- 
idProperty
public final SettableBeanProperty idProperty
 
 - 
 
- 
Method Detail
- 
construct
public static ObjectIdReader construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, JsonDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver)
Factory method called byBeanSerializerBasewith the initial information based on standard settings for the type for which serializer is being built. 
- 
getDeserializer
public JsonDeserializer<java.lang.Object> getDeserializer()
 
- 
getIdType
public JavaType getIdType()
 
- 
maySerializeAsObject
public boolean maySerializeAsObject()
Convenience method, equivalent to calling:readerInstance.generator.maySerializeAsObject();and used to determine whether Object Ids handled by the underlying generator may be in form of (JSON) Objects. Used for optimizing handling in cases where method returns false.- Since:
 - 2.5
 
 
- 
isValidReferencePropertyName
public boolean isValidReferencePropertyName(java.lang.String name, JsonParser parser)Convenience method, equivalent to calling:readerInstance.generator.isValidReferencePropertyName(name, parser);and used to determine whether Object Ids handled by the underlying generator may be in form of (JSON) Objects. Used for optimizing handling in cases where method returns false.- Since:
 - 2.5
 
 
- 
readObjectReference
public java.lang.Object readObjectReference(JsonParser jp, DeserializationContext ctxt) throws java.io.IOException
Method called to read value that is expected to be an Object Reference (that is, value of an Object Id used to refer to another object).- Throws:
 java.io.IOException- Since:
 - 2.3
 
 
 - 
 
 -