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>,java.io.Serializable
public class DefaultingXmlTypeResolverBuilder extends ObjectMapper.DefaultTypeResolverBuilder implements java.io.Serializable
Sub-class ofStdTypeResolverBuilderspecifically used with Default Typing.Composition/sub-classing gets quite tricky here: ideally we would just extend
XmlTypeResolverBuilderbut unfortunately inheritance hierarchy does not allow this.- Since:
- 2.10
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultingXmlTypeResolverBuilder(ObjectMapper.DefaultTyping t, PolymorphicTypeValidator ptv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StdTypeResolverBuilderinit(JsonTypeInfo.Id idType, TypeIdResolver idRes)Initialization method that is called right after constructing the builder instance.StdTypeResolverBuildertypeProperty(java.lang.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, withDefaultImpl
-
Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder
defaultImpl, getDefaultImpl, getTypeProperty, inclusion, isTypeIdVisible, noTypeInfoBuilder, typeIdVisibility
-
-
-
-
Constructor Detail
-
DefaultingXmlTypeResolverBuilder
public DefaultingXmlTypeResolverBuilder(ObjectMapper.DefaultTyping t, PolymorphicTypeValidator ptv)
-
-
Method Detail
-
init
public StdTypeResolverBuilder init(JsonTypeInfo.Id idType, TypeIdResolver idRes)
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
public StdTypeResolverBuilder typeProperty(java.lang.String typeIdPropName)
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}
-
-