Top Description Fields Constructors Methods
tools.jackson.dataformat.xml

public Class DefaultingXmlTypeResolverBuilder

extends DefaultTypeResolverBuilder
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.util.Collection, com.fasterxml.jackson.annotation.JsonTypeInfo, tools.jackson.databind.*, tools.jackson.databind.jsontype.NamedType, .PolymorphicTypeValidator, .TypeIdResolver, tools.jackson.databind.jsontype.impl.DefaultTypeResolverBuilder, .StdTypeResolverBuilder, tools.jackson.dataformat.xml.util.StaxUtil

Sub-class of StdTypeResolverBuilder specifically used with Default Typing.

Composition/sub-classing gets quite tricky here: ideally we would just extend XmlTypeResolverBuilder but unfortunately inheritance hierarchy does not allow this.

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from tools.jackson.databind.jsontype.impl.DefaultTypeResolverBuilder:
_appliesFor_subtypeValidator

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected TypeIdResolver
idResolver(DatabindContext ctxt, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser)

Overrides tools.jackson.databind.jsontype.impl.StdTypeResolverBuilder.idResolver.

Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration.

public StdTypeResolverBuilder
init(JsonTypeInfo.Value settings, TypeIdResolver idRes)

Overrides tools.jackson.databind.jsontype.impl.StdTypeResolverBuilder.init.

Implements tools.jackson.databind.jsontype.TypeResolverBuilder.init.

Initialization method that is called right after constructing the builder instance, in cases where information could not be passed directly (for example when instantiated for an annotation)

Inherited from tools.jackson.databind.jsontype.impl.DefaultTypeResolverBuilder:
_unwrapArrayType_unwrapReferenceTypebuildTypeDeserializerbuildTypeSerializersubTypeValidatortypeIdVisibilityuseForTypewithDefaultImpl

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.databind.jsontype.impl.DefaultTypeResolverBuilder.serialVersionUID.

Constructor Detail

DefaultingXmlTypeResolverBuilderback to summary
public DefaultingXmlTypeResolverBuilder(PolymorphicTypeValidator ptv, DefaultTyping applicability, JsonTypeInfo.As includeAs)
DefaultingXmlTypeResolverBuilderback to summary
public DefaultingXmlTypeResolverBuilder(PolymorphicTypeValidator ptv, DefaultTyping applicability, String propertyName)

Method Detail

idResolverback to summary
protected TypeIdResolver idResolver(DatabindContext ctxt, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser)

Overrides tools.jackson.databind.jsontype.impl.StdTypeResolverBuilder.idResolver.

Doc from tools.jackson.databind.jsontype.impl.StdTypeResolverBuilder.idResolver.

Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration.

Annotations
@Override
initback to summary
public StdTypeResolverBuilder init(JsonTypeInfo.Value settings, TypeIdResolver idRes)

Overrides tools.jackson.databind.jsontype.impl.StdTypeResolverBuilder.init.

Implements tools.jackson.databind.jsontype.TypeResolverBuilder.init.

Doc from tools.jackson.databind.jsontype.TypeResolverBuilder.init.

Initialization method that is called right after constructing the builder instance, in cases where information could not be passed directly (for example when instantiated for an annotation)

Annotations
@Override