public class ApolloTypeIdResolver extends Object implements com.fasterxml.jackson.databind.jsontype.TypeIdResolver
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,com.fasterxml.jackson.databind.JavaType> |
idToType |
protected HashMap<Class<?>,String> |
typeToId |
| Constructor and Description |
|---|
ApolloTypeIdResolver() |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.annotation.JsonTypeInfo.Id |
getMechanism() |
String |
idFromBaseType() |
String |
idFromValue(Object value) |
String |
idFromValueAndType(Object value,
Class<?> aClass) |
void |
init(com.fasterxml.jackson.databind.JavaType baseType) |
com.fasterxml.jackson.databind.JavaType |
typeFromId(String id) |
public void init(com.fasterxml.jackson.databind.JavaType baseType)
init in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolverpublic com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
getMechanism in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolverpublic String idFromValue(Object value)
idFromValue in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolverpublic String idFromValueAndType(Object value, Class<?> aClass)
idFromValueAndType in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolverpublic String idFromBaseType()
idFromBaseType in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolverpublic com.fasterxml.jackson.databind.JavaType typeFromId(String id)
typeFromId in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolverCopyright © 2005–2015 The Apache Software Foundation. All rights reserved.