public class ObjectIdReader
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
ObjectIdGenerator<?> |
generator
Blueprint generator instance: actual instance will be
fetched from
SerializerProvider using this as
the key. |
SettableBeanProperty |
idProperty |
PropertyName |
propertyName |
ObjectIdResolver |
resolver |
Modifier and Type | Method and Description |
---|---|
static ObjectIdReader |
construct(JavaType idType,
PropertyName propName,
ObjectIdGenerator<?> generator,
JsonDeserializer<?> deser,
SettableBeanProperty idProp,
ObjectIdResolver resolver)
Factory method called by
BeanSerializerBase
with the initial information based on standard settings for the type
for which serializer is being built. |
JsonDeserializer<java.lang.Object> |
getDeserializer() |
JavaType |
getIdType() |
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. |
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. |
java.lang.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).
|
public final PropertyName propertyName
public final ObjectIdGenerator<?> generator
SerializerProvider
using this as
the key.public final ObjectIdResolver resolver
public final SettableBeanProperty idProperty
public static ObjectIdReader construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, JsonDeserializer<?> deser, SettableBeanProperty idProp, ObjectIdResolver resolver)
BeanSerializerBase
with the initial information based on standard settings for the type
for which serializer is being built.public JsonDeserializer<java.lang.Object> getDeserializer()
public JavaType getIdType()
public boolean maySerializeAsObject()
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.public boolean isValidReferencePropertyName(java.lang.String name, JsonParser parser)
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.public java.lang.Object readObjectReference(JsonParser jp, DeserializationContext ctxt) throws java.io.IOException
java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved