com.groupbyinc.common.jackson.databind.ser.impl.ObjectIdWriter Maven / Gradle / Ivy
package com.fasterxml.jackson.databind.ser.impl;
import com.fasterxml.jackson.annotation.ObjectIdGenerator;
import com.fasterxml.jackson.core.SerializableString;
import com.fasterxml.jackson.core.io.SerializedString;
import com.fasterxml.jackson.databind.*;
/**
* Object that knows how to serialize Object Ids.
*/
public final class ObjectIdWriter
{
public final JavaType idType;
/**
* Name of id property to write, if not null: if null, should
* only write references, but id property is handled by some
* other entity.
*/
public final SerializableString propertyName;
/**
* Blueprint generator instance: actual instance will be
* fetched from {@link SerializerProvider} using this as
* the key.
*/
public final ObjectIdGenerator> generator;
/**
* Serializer used for serializing id values.
*/
public final JsonSerializer