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

    Constructors
    Modifier
    Constructor
    Description
    protected
    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 Type
    Method
    Description
    com.fasterxml.jackson.annotation.JsonTypeInfo.Id
     
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public String idFromValue(Object value)
    • idFromValueAndType

      public String idFromValueAndType(Object value, Class<?> suggestedType)
    • 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 interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
      Overrides:
      typeFromId in class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
      Throws:
      IOException