java.lang.Object
tools.jackson.databind.deser.impl.ObjectIdReader
- All Implemented Interfaces:
Serializable
Object that knows how to deserialize Object Ids.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ValueDeserializer<Object>Deserializer used for deserializing id values.protected final JavaTypefinal ObjectIdGenerator<?>Blueprint generator instance: actual instance will be fetched fromSerializationContextusing this as the key.final SettableBeanPropertyfinal PropertyNamefinal ObjectIdResolver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedObjectIdReader(JavaType t, PropertyName propName, ObjectIdGenerator<?> gen, ValueDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectIdReaderconstruct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, ValueDeserializer<?> 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.booleanisValidReferencePropertyName(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.booleanConvenience 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.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 Details
-
_idType
-
propertyName
-
generator
Blueprint generator instance: actual instance will be fetched fromSerializationContextusing this as the key. -
resolver
-
_deserializer
Deserializer used for deserializing id values. -
idProperty
-
-
Constructor Details
-
ObjectIdReader
protected ObjectIdReader(JavaType t, PropertyName propName, ObjectIdGenerator<?> gen, ValueDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver)
-
-
Method Details
-
construct
public static ObjectIdReader construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, ValueDeserializer<?> 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
-
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. -
isValidReferencePropertyName
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. -
readObjectReference
public Object readObjectReference(JsonParser p, DeserializationContext ctxt) throws JacksonException 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:
JacksonException
-