org.codehaus.jackson.map.jsontype.impl
Class TypeSerializerBase
java.lang.Object
org.codehaus.jackson.map.TypeSerializer
org.codehaus.jackson.map.jsontype.impl.TypeSerializerBase
- Direct Known Subclasses:
- AsArrayTypeSerializer, AsWrapperTypeSerializer
public abstract class TypeSerializerBase
- extends TypeSerializer
- Since:
- 1.5
- Author:
- tatus
Method Summary |
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. |
abstract JsonTypeInfo.As |
getTypeInclusion()
Accessor for type information inclusion method
that serializer uses; indicates how type information
is embedded in resulting JSON. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_idResolver
protected final TypeIdResolver _idResolver
TypeSerializerBase
protected TypeSerializerBase(TypeIdResolver idRes)
getTypeInclusion
public abstract JsonTypeInfo.As getTypeInclusion()
- Description copied from class:
TypeSerializer
- Accessor for type information inclusion method
that serializer uses; indicates how type information
is embedded in resulting JSON.
- Specified by:
getTypeInclusion
in class TypeSerializer
getPropertyName
public String getPropertyName()
- Description copied from class:
TypeSerializer
- Name of property that contains type information, if
property-based inclusion is used.
- Specified by:
getPropertyName
in class TypeSerializer
getTypeIdResolver
public TypeIdResolver getTypeIdResolver()
- Description copied from class:
TypeSerializer
- Accessor for object that handles conversions between
types and matching type ids.
- Specified by:
getTypeIdResolver
in class TypeSerializer