Class TypeSerializerBase
- java.lang.Object
-
- org.codehaus.jackson.map.TypeSerializer
-
- org.codehaus.jackson.map.jsontype.impl.TypeSerializerBase
-
- Direct Known Subclasses:
AsArrayTypeSerializer,AsExternalTypeSerializer,AsWrapperTypeSerializer
public abstract class TypeSerializerBase extends TypeSerializer
- Since:
- 1.5
-
-
Field Summary
Fields Modifier and Type Field Description protected TypeIdResolver_idResolverprotected BeanProperty_property
-
Constructor Summary
Constructors Modifier Constructor Description protectedTypeSerializerBase(TypeIdResolver idRes, BeanProperty property)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetPropertyName()Name of property that contains type information, if property-based inclusion is used.TypeIdResolvergetTypeIdResolver()Accessor for object that handles conversions between types and matching type ids.abstract JsonTypeInfo.AsgetTypeInclusion()Accessor for type information inclusion method that serializer uses; indicates how type information is embedded in resulting JSON.-
Methods inherited from class org.codehaus.jackson.map.TypeSerializer
writeTypePrefixForArray, writeTypePrefixForArray, writeTypePrefixForObject, writeTypePrefixForObject, writeTypePrefixForScalar, writeTypePrefixForScalar, writeTypeSuffixForArray, writeTypeSuffixForObject, writeTypeSuffixForScalar
-
-
-
-
Field Detail
-
_idResolver
protected final TypeIdResolver _idResolver
-
_property
protected final BeanProperty _property
-
-
Constructor Detail
-
TypeSerializerBase
protected TypeSerializerBase(TypeIdResolver idRes, BeanProperty property)
-
-
Method Detail
-
getTypeInclusion
public abstract JsonTypeInfo.As getTypeInclusion()
Description copied from class:TypeSerializerAccessor for type information inclusion method that serializer uses; indicates how type information is embedded in resulting JSON.- Specified by:
getTypeInclusionin classTypeSerializer
-
getPropertyName
public String getPropertyName()
Description copied from class:TypeSerializerName of property that contains type information, if property-based inclusion is used.- Specified by:
getPropertyNamein classTypeSerializer
-
getTypeIdResolver
public TypeIdResolver getTypeIdResolver()
Description copied from class:TypeSerializerAccessor for object that handles conversions between types and matching type ids.- Specified by:
getTypeIdResolverin classTypeSerializer
-
-