Class MinimalClassNameIdResolver
- java.lang.Object
-
- com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
- com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
-
- com.fasterxml.jackson.databind.jsontype.impl.MinimalClassNameIdResolver
-
- All Implemented Interfaces:
TypeIdResolver
public class MinimalClassNameIdResolver extends ClassNameIdResolver
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MinimalClassNameIdResolverconstruct(JavaType baseType, MapperConfig<?> config, PolymorphicTypeValidator ptv)JsonTypeInfo.IdgetMechanism()Accessor for mechanism that this resolver uses for determining type id from type.StringidFromValue(Object value)Method called to serialize type of the type of given value as a String to include in serialized JSON content.-
Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
getDescForKnownTypeIds, idFromValueAndType, registerSubtype, typeFromId
-
Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
idFromBaseType, init
-
-
-
-
Method Detail
-
construct
public static MinimalClassNameIdResolver construct(JavaType baseType, MapperConfig<?> config, PolymorphicTypeValidator ptv)
-
getMechanism
public JsonTypeInfo.Id getMechanism()
Description copied from interface:TypeIdResolverAccessor for mechanism that this resolver uses for determining type id from type. Mostly informational; not required to be called or used.- Specified by:
getMechanismin interfaceTypeIdResolver- Overrides:
getMechanismin classClassNameIdResolver
-
idFromValue
public String idFromValue(Object value)
Description copied from interface:TypeIdResolverMethod called to serialize type of the type of given value as a String to include in serialized JSON content.- Specified by:
idFromValuein interfaceTypeIdResolver- Overrides:
idFromValuein classClassNameIdResolver
-
-