Class OverlayModelResolver

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsontype.TypeIdResolver

    public class OverlayModelResolver
    extends com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
    • Field Detail

      • factory

        protected com.fasterxml.jackson.databind.type.TypeFactory factory
    • Constructor Detail

      • OverlayModelResolver

        public OverlayModelResolver()
    • Method Detail

      • registerOverlayModel

        public static void registerOverlayModel​(String modelName,
                                                Class<? extends OverlayModel> klass)
      • idFromValueAndType

        public String idFromValueAndType​(Object value,
                                         Class<?> suggestedType)
      • typeFromId

        public com.fasterxml.jackson.databind.JavaType typeFromId​(com.fasterxml.jackson.databind.DatabindContext context,
                                                                  String id)
        Specified by:
        typeFromId in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
        Overrides:
        typeFromId in class com.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.