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, typeIdprotected final TypeSerializer _typeSerializer
protected final java.lang.Object _forObject
public TypeSerializerRerouter(TypeSerializer ts, java.lang.Object ob)
public TypeSerializer forProperty(BeanProperty prop)
TypeSerializerCollection or Map
valued properties).forProperty in class TypeSerializerpublic com.fasterxml.jackson.annotation.JsonTypeInfo.As getTypeInclusion()
TypeSerializergetTypeInclusion in class TypeSerializerpublic java.lang.String getPropertyName()
TypeSerializergetPropertyName in class TypeSerializerpublic TypeIdResolver getTypeIdResolver()
TypeSerializergetTypeIdResolver in class TypeSerializerpublic com.fasterxml.jackson.core.type.WritableTypeId writeTypePrefix(com.fasterxml.jackson.core.JsonGenerator g,
com.fasterxml.jackson.core.type.WritableTypeId typeId)
throws java.io.IOException
TypeSerializerwriteTypePrefix in class TypeSerializerg - Generator to use for outputting type id and possible wrappingtypeId - Details of what type id is to be written, how.java.io.IOExceptionpublic 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 TypeSerializerjava.io.IOException@Deprecated
public void writeTypePrefixForScalar(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen)
throws java.io.IOException
TypeSerializerwriteTypePrefixForScalar in class TypeSerializervalue - 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
TypeSerializerwriteTypePrefixForObject in class TypeSerializervalue - 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
TypeSerializerwriteTypePrefixForArray in class TypeSerializervalue - 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
TypeSerializerTypeSerializer.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 TypeSerializerjava.io.IOException@Deprecated
public void writeTypeSuffixForObject(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen)
throws java.io.IOException
TypeSerializerTypeSerializer.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 TypeSerializerjava.io.IOException@Deprecated
public void writeTypeSuffixForArray(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen)
throws java.io.IOException
TypeSerializerTypeSerializer.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 TypeSerializerjava.io.IOException@Deprecated
public void writeTypePrefixForScalar(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.Class<?> type)
throws java.io.IOException
TypeSerializerwriteTypePrefixForScalar in class TypeSerializerjava.io.IOException@Deprecated
public void writeTypePrefixForObject(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.Class<?> type)
throws java.io.IOException
TypeSerializerwriteTypePrefixForObject in class TypeSerializerjava.io.IOException@Deprecated
public void writeTypePrefixForArray(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator gen,
java.lang.Class<?> type)
throws java.io.IOException
TypeSerializerwriteTypePrefixForArray in class TypeSerializerjava.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 TypeSerializerjava.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 TypeSerializerjava.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 TypeSerializerjava.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 TypeSerializerjava.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 TypeSerializerjava.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 TypeSerializerjava.io.IOException