Class ComponentTypeResolver
- java.lang.Object
-
- net.n2oapp.framework.api.metadata.jackson.ComponentTypeResolver
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public class ComponentTypeResolver extends Object implements com.fasterxml.jackson.databind.jsontype.TypeIdResolver
Соотношение объектов json с типами N2O
-
-
Constructor Summary
Constructors Constructor Description ComponentTypeResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescForKnownTypeIds()com.fasterxml.jackson.annotation.JsonTypeInfo.IdgetMechanism()StringidFromBaseType()StringidFromValue(Object o)StringidFromValueAndType(Object o, Class<?> aClass)voidinit(com.fasterxml.jackson.databind.JavaType javaType)voidsetRegister(ComponentTypeRegister register)com.fasterxml.jackson.databind.JavaTypetypeFromId(com.fasterxml.jackson.databind.DatabindContext databindContext, String type)
-
-
-
Method Detail
-
init
public void init(com.fasterxml.jackson.databind.JavaType javaType)
- Specified by:
initin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromValue
public String idFromValue(Object o)
- Specified by:
idFromValuein interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromValueAndType
public String idFromValueAndType(Object o, Class<?> aClass)
- Specified by:
idFromValueAndTypein interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
idFromBaseType
public String idFromBaseType()
- Specified by:
idFromBaseTypein interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
typeFromId
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext databindContext, String type)- Specified by:
typeFromIdin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
getDescForKnownTypeIds
public String getDescForKnownTypeIds()
- Specified by:
getDescForKnownTypeIdsin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
getMechanism
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
- Specified by:
getMechanismin interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
-
setRegister
public void setRegister(ComponentTypeRegister register)
-
-