Package org.openrefine.overlay
Class OverlayModelResolver
- java.lang.Object
-
- com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
- org.openrefine.overlay.OverlayModelResolver
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public class OverlayModelResolver extends com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.type.TypeFactory
factory
protected static Map<Class<? extends OverlayModel>,String>
s_classToId
protected static Map<String,Class<? extends OverlayModel>>
s_overlayModelClasses
-
Constructor Summary
Constructors Constructor Description OverlayModelResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Class<? extends OverlayModel>
getClass(String id)
Exposed for deserialization of legacy projects.com.fasterxml.jackson.annotation.JsonTypeInfo.Id
getMechanism()
String
idFromValue(Object value)
String
idFromValueAndType(Object value, Class<?> suggestedType)
static void
registerOverlayModel(String modelName, Class<? extends OverlayModel> klass)
com.fasterxml.jackson.databind.JavaType
typeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id)
-
-
-
Field Detail
-
factory
protected com.fasterxml.jackson.databind.type.TypeFactory factory
-
s_overlayModelClasses
protected static final Map<String,Class<? extends OverlayModel>> s_overlayModelClasses
-
s_classToId
protected static final Map<Class<? extends OverlayModel>,String> s_classToId
-
-
Method Detail
-
registerOverlayModel
public static void registerOverlayModel(String modelName, Class<? extends OverlayModel> klass)
-
typeFromId
public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id)
- Specified by:
typeFromId
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
- Overrides:
typeFromId
in classcom.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
getMechanism
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
-
getClass
public static Class<? extends OverlayModel> getClass(String id)
Exposed for deserialization of legacy projects.
-
-