static class JsonValueSerializer.TypeSerializerRerouter extends TypeSerializer
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
_forObject |
protected TypeSerializer |
_typeSerializer |
Constructor and Description |
---|
TypeSerializerRerouter(TypeSerializer ts,
java.lang.Object ob) |
Modifier and Type | Method and Description |
---|---|
TypeSerializer |
forProperty(BeanProperty prop)
Method called to create contextual version, to be used for
values of given property.
|
java.lang.String |
getPropertyName()
Name of property that contains type information, if
property-based inclusion is used.
|
TypeIdResolver |
getTypeIdResolver()
Accessor for object that handles conversions between
types and matching type ids.
|
com.fasterxml.jackson.annotation.JsonTypeInfo.As |
getTypeInclusion()
Accessor for type information inclusion method
that serializer uses; indicates how type information
is embedded in resulting JSON.
|
void |
writeCustomTypePrefixForArray(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.String typeId)
Deprecated.
|
void |
writeCustomTypePrefixForObject(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.String typeId)
Deprecated.
|
void |
writeCustomTypePrefixForScalar(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.String typeId)
Deprecated.
|
void |
writeCustomTypeSuffixForArray(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.String typeId)
Deprecated.
|
void |
writeCustomTypeSuffixForObject(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.String typeId)
Deprecated.
|
void |
writeCustomTypeSuffixForScalar(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.String typeId)
Deprecated.
|
com.fasterxml.jackson.core.type.WritableTypeId |
writeTypePrefix(com.fasterxml.jackson.core.JsonGenerator g,
com.fasterxml.jackson.core.type.WritableTypeId typeId)
Method called to write initial part of type information for given
value, along with possible wrapping to use: details are specified
by `typeId` argument.
|
void |
writeTypePrefixForArray(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen)
Deprecated.
|
void |
writeTypePrefixForArray(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.Class<?> type)
Deprecated.
|
void |
writeTypePrefixForObject(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen)
Deprecated.
|
void |
writeTypePrefixForObject(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.Class<?> type)
Deprecated.
|
void |
writeTypePrefixForScalar(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen)
Deprecated.
|
void |
writeTypePrefixForScalar(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.Class<?> type)
Deprecated.
|
com.fasterxml.jackson.core.type.WritableTypeId |
writeTypeSuffix(com.fasterxml.jackson.core.JsonGenerator g,
com.fasterxml.jackson.core.type.WritableTypeId typeId) |
void |
writeTypeSuffixForArray(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen)
Deprecated.
|
void |
writeTypeSuffixForObject(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen)
Deprecated.
|
void |
writeTypeSuffixForScalar(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen)
Deprecated.
|
_writeLegacySuffix, typeId, typeId, typeId
protected final TypeSerializer _typeSerializer
protected final java.lang.Object _forObject
public TypeSerializerRerouter(TypeSerializer ts, java.lang.Object ob)
public TypeSerializer forProperty(BeanProperty prop)
TypeSerializer
Collection
or Map
valued properties).forProperty
in class TypeSerializer
public com.fasterxml.jackson.annotation.JsonTypeInfo.As getTypeInclusion()
TypeSerializer
getTypeInclusion
in class TypeSerializer
public java.lang.String getPropertyName()
TypeSerializer
getPropertyName
in class TypeSerializer
public TypeIdResolver getTypeIdResolver()
TypeSerializer
getTypeIdResolver
in class TypeSerializer
public com.fasterxml.jackson.core.type.WritableTypeId writeTypePrefix(com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.core.type.WritableTypeId typeId) throws java.io.IOException
TypeSerializer
writeTypePrefix
in class TypeSerializer
g
- Generator to use for outputting type id and possible wrappingtypeId
- Details of what type id is to be written, how.java.io.IOException
public com.fasterxml.jackson.core.type.WritableTypeId writeTypeSuffix(com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.core.type.WritableTypeId typeId) throws java.io.IOException
writeTypeSuffix
in class TypeSerializer
java.io.IOException
@Deprecated public void writeTypePrefixForScalar(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
TypeSerializer
writeTypePrefixForScalar
in class TypeSerializer
value
- Value that will be serialized, for which type information is
to be writtengen
- Generator to use for writing type informationjava.io.IOException
@Deprecated public void writeTypePrefixForObject(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
TypeSerializer
writeTypePrefixForObject
in class TypeSerializer
value
- Value that will be serialized, for which type information is
to be writtengen
- Generator to use for writing type informationjava.io.IOException
@Deprecated public void writeTypePrefixForArray(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
TypeSerializer
writeTypePrefixForArray
in class TypeSerializer
value
- Value that will be serialized, for which type information is
to be writtengen
- Generator to use for writing type informationjava.io.IOException
@Deprecated public void writeTypeSuffixForScalar(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
TypeSerializer
TypeSerializer.writeTypePrefixForScalar(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator)
.
Actual action to take may depend on various factors, but has to match with
action TypeSerializer.writeTypePrefixForScalar(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator)
did (close array or object; or do nothing).writeTypeSuffixForScalar
in class TypeSerializer
java.io.IOException
@Deprecated public void writeTypeSuffixForObject(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
TypeSerializer
TypeSerializer.writeTypePrefixForObject(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator)
.
It needs to write closing END_OBJECT marker, and any other decoration
that needs to be matched.writeTypeSuffixForObject
in class TypeSerializer
java.io.IOException
@Deprecated public void writeTypeSuffixForArray(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
TypeSerializer
TypeSerializer.writeTypeSuffixForScalar(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator)
.
It needs to write closing END_ARRAY marker, and any other decoration
that needs to be matched.writeTypeSuffixForArray
in class TypeSerializer
java.io.IOException
@Deprecated public void writeTypePrefixForScalar(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.Class<?> type) throws java.io.IOException
TypeSerializer
writeTypePrefixForScalar
in class TypeSerializer
java.io.IOException
@Deprecated public void writeTypePrefixForObject(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.Class<?> type) throws java.io.IOException
TypeSerializer
writeTypePrefixForObject
in class TypeSerializer
java.io.IOException
@Deprecated public void writeTypePrefixForArray(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.Class<?> type) throws java.io.IOException
TypeSerializer
writeTypePrefixForArray
in class TypeSerializer
java.io.IOException
@Deprecated public void writeCustomTypePrefixForScalar(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId) throws java.io.IOException
writeCustomTypePrefixForScalar
in class TypeSerializer
java.io.IOException
@Deprecated public void writeCustomTypePrefixForObject(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId) throws java.io.IOException
writeCustomTypePrefixForObject
in class TypeSerializer
java.io.IOException
@Deprecated public void writeCustomTypePrefixForArray(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId) throws java.io.IOException
writeCustomTypePrefixForArray
in class TypeSerializer
java.io.IOException
@Deprecated public void writeCustomTypeSuffixForScalar(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId) throws java.io.IOException
writeCustomTypeSuffixForScalar
in class TypeSerializer
java.io.IOException
@Deprecated public void writeCustomTypeSuffixForObject(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId) throws java.io.IOException
writeCustomTypeSuffixForObject
in class TypeSerializer
java.io.IOException
@Deprecated public void writeCustomTypeSuffixForArray(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId) throws java.io.IOException
writeCustomTypeSuffixForArray
in class TypeSerializer
java.io.IOException