Package org.openrefine.browsing.facets
Class FacetConfigResolver
- java.lang.Object
-
- com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
- org.openrefine.browsing.facets.FacetConfigResolver
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public class FacetConfigResolver extends com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
-
Field Summary
Fields Modifier and Type Field Description protected com.fasterxml.jackson.databind.type.TypeFactory
factory
static Map<String,Class<? extends FacetConfig>>
s_nameToClass
-
Constructor Summary
Constructors Constructor Description FacetConfigResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.annotation.JsonTypeInfo.Id
getMechanism()
String
idFromValue(Object instance)
String
idFromValueAndType(Object instance, Class<?> type)
static void
registerFacetConfig(String moduleName, String name, Class<? extends FacetConfig> klass)
com.fasterxml.jackson.databind.JavaType
typeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id)
-
-
-
Field Detail
-
s_nameToClass
public static final Map<String,Class<? extends FacetConfig>> s_nameToClass
-
factory
protected com.fasterxml.jackson.databind.type.TypeFactory factory
-
-
Method Detail
-
registerFacetConfig
public static void registerFacetConfig(String moduleName, String name, Class<? extends FacetConfig> klass)
-
getMechanism
public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
-
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
-
-