Class DefaultingXmlTypeResolverBuilder
java.lang.Object
com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder
com.fasterxml.jackson.databind.ObjectMapper.DefaultTypeResolverBuilder
com.fasterxml.jackson.dataformat.xml.DefaultingXmlTypeResolverBuilder
- All Implemented Interfaces:
TypeResolverBuilder<StdTypeResolverBuilder>,Serializable
public class DefaultingXmlTypeResolverBuilder
extends ObjectMapper.DefaultTypeResolverBuilder
implements Serializable
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.
- Since:
- 2.10
- See Also:
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioninit(JsonTypeInfo.Id idType, TypeIdResolver idRes) Initialization method that is called right after constructing the builder instance.typeProperty(String typeIdPropName) Method for constructing an instance with specified type property name (property name to use for type id when using "as-property" inclusion).Methods inherited from class com.fasterxml.jackson.databind.ObjectMapper.DefaultTypeResolverBuilder
buildTypeDeserializer, buildTypeSerializer, construct, subTypeValidator, useForType, withDefaultImplMethods inherited from class com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder
defaultImpl, getDefaultImpl, getTypeProperty, inclusion, init, isTypeIdVisible, noTypeInfoBuilder, typeIdVisibility, withSettings
-
Constructor Details
-
DefaultingXmlTypeResolverBuilder
-
-
Method Details
-
init
Description copied from interface:TypeResolverBuilderInitialization method that is called right after constructing the builder instance.- Specified by:
initin interfaceTypeResolverBuilder<StdTypeResolverBuilder>- Overrides:
initin classStdTypeResolverBuilder- Parameters:
idType- Which type metadata is usedidRes- (optional) Custom type id resolver used, if any- Returns:
- Resulting builder instance (usually this builder, but not necessarily)
-
typeProperty
Description copied from class:StdTypeResolverBuilderMethod for constructing an instance with specified type property name (property name to use for type id when using "as-property" inclusion).- Specified by:
typePropertyin interfaceTypeResolverBuilder<StdTypeResolverBuilder>- Overrides:
typePropertyin classStdTypeResolverBuilder- Parameters:
typeIdPropName- Name of JSON property to use for including type information- Returns:
- Resulting builder instance (usually this builder, but may be a newly constructed instance for immutable builders}
-