
public class ClassAliasIdResolver extends ClassNameIdResolver
_baseType, _typeFactory| Constructor and Description |
|---|
ClassAliasIdResolver(JavaType baseType,
TypeFactory typeFactory,
Map<String,Class<?>> idToClass,
Map<Class<?>,String> classToId) |
| Modifier and Type | Method and Description |
|---|---|
protected JavaType |
_typeFromId(String id,
DatabindContext ctxt) |
void |
addClassToId(Class<?> clazz,
String id)
Adds single mapping: class <-> alias (id).
|
String |
idFromValue(Object value) |
String |
idFromValueAndType(Object value,
Class<?> type) |
_idFrom, getDescForKnownTypeIds, getMechanism, registerSubtype, typeFromIdidFromBaseType, initpublic String idFromValue(Object value)
idFromValue in interface TypeIdResolveridFromValue in class ClassNameIdResolverpublic String idFromValueAndType(Object value, Class<?> type)
idFromValueAndType in interface TypeIdResolveridFromValueAndType in class ClassNameIdResolverprotected JavaType _typeFromId(String id, DatabindContext ctxt) throws IOException
_typeFromId in class ClassNameIdResolverIOExceptionCopyright © 2019. All rights reserved.