Search in sources :

Example 6 with SerializableString

use of com.fasterxml.jackson.core.SerializableString in project jackson-databind by FasterXML.

the class ObjectIdWriter method construct.

/**
     * Factory method called by {@link com.fasterxml.jackson.databind.ser.std.BeanSerializerBase}
     * with the initial information based on standard settings for the type
     * for which serializer is being built.
     * 
     * @since 2.3
     */
public static ObjectIdWriter construct(JavaType idType, PropertyName propName, ObjectIdGenerator<?> generator, boolean alwaysAsId) {
    String simpleName = (propName == null) ? null : propName.getSimpleName();
    SerializableString serName = (simpleName == null) ? null : new SerializedString(simpleName);
    return new ObjectIdWriter(idType, serName, generator, null, alwaysAsId);
}
Also used : SerializedString(com.fasterxml.jackson.core.io.SerializedString) SerializableString(com.fasterxml.jackson.core.SerializableString) SerializedString(com.fasterxml.jackson.core.io.SerializedString) SerializableString(com.fasterxml.jackson.core.SerializableString)

Aggregations

SerializableString (com.fasterxml.jackson.core.SerializableString)6 SerializedString (com.fasterxml.jackson.core.io.SerializedString)3 CharacterEscapes (com.fasterxml.jackson.core.io.CharacterEscapes)1 ByteBuffer (java.nio.ByteBuffer)1