Class XmlTypeResolverBuilder.XmlClassNameIdResolver

java.lang.Object
tools.jackson.databind.jsontype.impl.TypeIdResolverBase
tools.jackson.databind.jsontype.impl.ClassNameIdResolver
tools.jackson.dataformat.xml.XmlTypeResolverBuilder.XmlClassNameIdResolver
All Implemented Interfaces:
Serializable, tools.jackson.databind.jsontype.TypeIdResolver
Enclosing class:
XmlTypeResolverBuilder

protected static class XmlTypeResolverBuilder.XmlClassNameIdResolver extends tools.jackson.databind.jsontype.impl.ClassNameIdResolver
See Also:
  • Field Summary

    Fields inherited from class tools.jackson.databind.jsontype.impl.ClassNameIdResolver

    _allowedSubtypes, _subTypeValidator

    Fields inherited from class tools.jackson.databind.jsontype.impl.TypeIdResolverBase

    _baseType
  • Constructor Summary

    Constructors
    Constructor
    Description
    XmlClassNameIdResolver(tools.jackson.databind.JavaType baseType, Collection<tools.jackson.databind.jsontype.NamedType> subtypes, tools.jackson.databind.jsontype.PolymorphicTypeValidator ptv)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    idFromValue(tools.jackson.databind.DatabindContext ctxt, Object value)
     
    tools.jackson.databind.JavaType
    typeFromId(tools.jackson.databind.DatabindContext ctxt, String id)
     

    Methods inherited from class tools.jackson.databind.jsontype.impl.ClassNameIdResolver

    _idFrom, _typeFromId, construct, getDescForKnownTypeIds, getMechanism, idFromValueAndType

    Methods inherited from class tools.jackson.databind.jsontype.impl.TypeIdResolverBase

    _resolveToParentAsNecessary, idFromBaseType, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XmlClassNameIdResolver

      public XmlClassNameIdResolver(tools.jackson.databind.JavaType baseType, Collection<tools.jackson.databind.jsontype.NamedType> subtypes, tools.jackson.databind.jsontype.PolymorphicTypeValidator ptv)
  • Method Details

    • idFromValue

      public String idFromValue(tools.jackson.databind.DatabindContext ctxt, Object value)
      Specified by:
      idFromValue in interface tools.jackson.databind.jsontype.TypeIdResolver
      Overrides:
      idFromValue in class tools.jackson.databind.jsontype.impl.ClassNameIdResolver
    • typeFromId

      public tools.jackson.databind.JavaType typeFromId(tools.jackson.databind.DatabindContext ctxt, String id) throws tools.jackson.core.JacksonException
      Specified by:
      typeFromId in interface tools.jackson.databind.jsontype.TypeIdResolver
      Overrides:
      typeFromId in class tools.jackson.databind.jsontype.impl.ClassNameIdResolver
      Throws:
      tools.jackson.core.JacksonException