TypeIdResolverpublic class MinimalClassNameIdResolver extends ClassNameIdResolver
| Modifier and Type | Field | Description |
|---|---|---|
protected String |
_basePackageName |
Package name of the base class, to be used for determining common
prefix that can be omitted from included type id.
|
protected String |
_basePackagePrefix |
Same as
_basePackageName, but includes trailing dot. |
_baseType, _typeFactory| Modifier | Constructor | Description |
|---|---|---|
protected |
MinimalClassNameIdResolver(JavaType baseType,
TypeFactory typeFactory) |
| Modifier and Type | Method | Description |
|---|---|---|
protected JavaType |
_typeFromId(String id,
DatabindContext ctxt) |
|
com.fasterxml.jackson.annotation.JsonTypeInfo.Id |
getMechanism() |
Accessor for mechanism that this resolver uses for determining
type id from type.
|
String |
idFromValue(Object value) |
Method called to serialize type of the type of given value
as a String to include in serialized JSON content.
|
_idFrom, getDescForKnownTypeIds, idFromValueAndType, registerSubtype, typeFromIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitidFromBaseType, initprotected final String _basePackageName
protected final String _basePackagePrefix
_basePackageName, but includes trailing dot.protected MinimalClassNameIdResolver(JavaType baseType, TypeFactory typeFactory)
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
TypeIdResolvergetMechanism in interface TypeIdResolvergetMechanism in class ClassNameIdResolverpublic String idFromValue(Object value)
TypeIdResolveridFromValue in interface TypeIdResolveridFromValue in class ClassNameIdResolverprotected JavaType _typeFromId(String id, DatabindContext ctxt) throws IOException
_typeFromId in class ClassNameIdResolverIOExceptionCopyright © 2008–2018. All rights reserved.