Class ValueReferenceTypeIdResolver
java.lang.Object
com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
org.graylog2.contentpacks.jackson.ValueReferenceTypeIdResolver
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
public class ValueReferenceTypeIdResolver
extends com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
-
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
_baseType, _typeFactory
-
Constructor Summary
ModifierConstructorDescriptionprotected
ValueReferenceTypeIdResolver
(com.fasterxml.jackson.databind.JavaType baseType, com.fasterxml.jackson.databind.type.TypeFactory typeFactory, Collection<com.fasterxml.jackson.databind.jsontype.NamedType> subtypes) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.annotation.JsonTypeInfo.Id
idFromValue
(Object value) idFromValueAndType
(Object value, Class<?> suggestedType) com.fasterxml.jackson.databind.JavaType
typeFromId
(com.fasterxml.jackson.databind.DatabindContext context, String id) Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
getDescForKnownTypeIds, idFromBaseType, init
-
Constructor Details
-
ValueReferenceTypeIdResolver
protected ValueReferenceTypeIdResolver(com.fasterxml.jackson.databind.JavaType baseType, com.fasterxml.jackson.databind.type.TypeFactory typeFactory, Collection<com.fasterxml.jackson.databind.jsontype.NamedType> subtypes)
-
-
Method Details
-
idFromValue
-
idFromValueAndType
-
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) throws IOException - Specified by:
typeFromId
in interfacecom.fasterxml.jackson.databind.jsontype.TypeIdResolver
- Overrides:
typeFromId
in classcom.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
- Throws:
IOException
-