Class MinimalClassNameIdResolver
java.lang.Object
org.codehaus.jackson.map.jsontype.impl.TypeIdResolverBase
org.codehaus.jackson.map.jsontype.impl.ClassNameIdResolver
org.codehaus.jackson.map.jsontype.impl.MinimalClassNameIdResolver
- All Implemented Interfaces:
TypeIdResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
Package name of the base class, to be used for determining common prefix that can be omitted from included type id.protected final String
Same as_basePackageName
, but includes trailing dot.Fields inherited from class org.codehaus.jackson.map.jsontype.impl.TypeIdResolverBase
_baseType, _typeFactory
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MinimalClassNameIdResolver
(JavaType baseType, TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionAccessor for mechanism that this resolver uses for determining type id from type.idFromValue
(Object value) Method called to serialize type of the type of given value as a String to include in serialized JSON content.typeFromId
(String id) Method called to resolve type from given type identifier.Methods inherited from class org.codehaus.jackson.map.jsontype.impl.ClassNameIdResolver
_idFrom, idFromValueAndType, registerSubtype
Methods inherited from class org.codehaus.jackson.map.jsontype.impl.TypeIdResolverBase
idFromBaseType, init
-
Field Details
-
_basePackageName
Package name of the base class, to be used for determining common prefix that can be omitted from included type id. Does not include the trailing dot. -
_basePackagePrefix
Same as_basePackageName
, but includes trailing dot.
-
-
Constructor Details
-
MinimalClassNameIdResolver
-
-
Method Details
-
getMechanism
Description copied from interface:TypeIdResolver
Accessor for mechanism that this resolver uses for determining type id from type. Mostly informational; not required to be called or used.- Specified by:
getMechanism
in interfaceTypeIdResolver
- Overrides:
getMechanism
in classClassNameIdResolver
-
idFromValue
Description copied from interface:TypeIdResolver
Method called to serialize type of the type of given value as a String to include in serialized JSON content.- Specified by:
idFromValue
in interfaceTypeIdResolver
- Overrides:
idFromValue
in classClassNameIdResolver
-
typeFromId
Description copied from interface:TypeIdResolver
Method called to resolve type from given type identifier.- Specified by:
typeFromId
in interfaceTypeIdResolver
- Overrides:
typeFromId
in classClassNameIdResolver
-