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, typeFromId
idFromBaseType, init
public String idFromValue(Object value)
idFromValue
in interface TypeIdResolver
idFromValue
in class ClassNameIdResolver
public String idFromValueAndType(Object value, Class<?> type)
idFromValueAndType
in interface TypeIdResolver
idFromValueAndType
in class ClassNameIdResolver
protected JavaType _typeFromId(String id, DatabindContext ctxt) throws IOException
_typeFromId
in class ClassNameIdResolver
IOException
Copyright © 2019. All rights reserved.