Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.deser.impl

public Class ObjectIdReader

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.IOException, com.fasterxml.jackson.annotation.ObjectIdGenerator, .ObjectIdResolver, com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.SettableBeanProperty

Object that knows how to deserialize Object Ids.

Field Summary

Modifier and TypeField and Description
protected final JsonDeserializer<Object>
_deserializer

Deserializer used for deserializing id values.

protected final JavaType
public final ObjectIdGenerator<?>
generator

Blueprint generator instance: actual instance will be fetched from SerializerProvider using this as the key.

public final SettableBeanProperty
public final PropertyName
public final ObjectIdResolver
private static final long

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static ObjectIdReader
construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, JsonDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver)

Factory method called by com.fasterxml.jackson.databind.ser.std.BeanSerializerBase with the initial information based on standard settings for the type for which serializer is being built.

public JsonDeserializer<Object>
public JavaType
public boolean
isValidReferencePropertyName(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.

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.

public Object
readObjectReference(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).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_deserializerback to summary
protected final JsonDeserializer<Object> _deserializer

Deserializer used for deserializing id values.

_idTypeback to summary
protected final JavaType _idType
generatorback to summary
public final ObjectIdGenerator<?> generator

Blueprint generator instance: actual instance will be fetched from SerializerProvider using this as the key.

idPropertyback to summary
public final SettableBeanProperty idProperty
propertyNameback to summary
public final PropertyName propertyName
resolverback to summary
public final ObjectIdResolver resolver
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ObjectIdReaderback to summary
protected ObjectIdReader(JavaType t, PropertyName propName, ObjectIdGenerator<?> gen, JsonDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver)
Annotations
@SuppressWarnings:unchecked

Method Detail

constructback to summary
public static ObjectIdReader construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, JsonDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver)

Factory method called by com.fasterxml.jackson.databind.ser.std.BeanSerializerBase with the initial information based on standard settings for the type for which serializer is being built.

getDeserializerback to summary
public JsonDeserializer<Object> getDeserializer()
getIdTypeback to summary
public JavaType getIdType()
isValidReferencePropertyNameback to summary
public boolean isValidReferencePropertyName(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
maySerializeAsObjectback to summary
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
readObjectReferenceback to summary
public Object readObjectReference(JsonParser jp, DeserializationContext ctxt) throws 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).

Since
2.3