|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter
public final class ObjectIdWriter
Object that knows how to serialize Object Ids.
Field Summary | |
---|---|
com.fasterxml.jackson.annotation.ObjectIdGenerator<?> |
generator
Blueprint generator instance: actual instance will be fetched from SerializerProvider using this as
the key. |
JavaType |
idType
|
com.fasterxml.jackson.core.io.SerializedString |
propertyName
Name of id property to write, if not null: if null, should only write references, but id property is handled by some other entity. |
JsonSerializer<Object> |
serializer
Serializer used for serializing id values. |
Constructor Summary | |
---|---|
protected |
ObjectIdWriter(JavaType t,
com.fasterxml.jackson.core.io.SerializedString propName,
com.fasterxml.jackson.annotation.ObjectIdGenerator<?> gen,
JsonSerializer<?> ser)
|
Method Summary | |
---|---|
static ObjectIdWriter |
construct(JavaType idType,
String propName,
com.fasterxml.jackson.annotation.ObjectIdGenerator<?> generator)
Factory method called by BeanSerializerBase
with the initial information based on standard settings for the type
for which serializer is being built. |
ObjectIdWriter |
withSerializer(JsonSerializer<?> ser)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final JavaType idType
public final com.fasterxml.jackson.core.io.SerializedString propertyName
public final com.fasterxml.jackson.annotation.ObjectIdGenerator<?> generator
SerializerProvider
using this as
the key.
public final JsonSerializer<Object> serializer
Constructor Detail |
---|
protected ObjectIdWriter(JavaType t, com.fasterxml.jackson.core.io.SerializedString propName, com.fasterxml.jackson.annotation.ObjectIdGenerator<?> gen, JsonSerializer<?> ser)
Method Detail |
---|
public static ObjectIdWriter construct(JavaType idType, String propName, com.fasterxml.jackson.annotation.ObjectIdGenerator<?> generator)
BeanSerializerBase
with the initial information based on standard settings for the type
for which serializer is being built.
public ObjectIdWriter withSerializer(JsonSerializer<?> ser)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |