Module tools.jackson.dataformat.xml
Package tools.jackson.dataformat.xml
Class XmlTypeResolverBuilder
java.lang.Object
tools.jackson.databind.jsontype.impl.StdTypeResolverBuilder
tools.jackson.dataformat.xml.XmlTypeResolverBuilder
- All Implemented Interfaces:
tools.jackson.databind.jsontype.TypeResolverBuilder<tools.jackson.databind.jsontype.impl.StdTypeResolverBuilder>
public class XmlTypeResolverBuilder
extends tools.jackson.databind.jsontype.impl.StdTypeResolverBuilder
Custom specialization of
StdTypeResolverBuilder; needed so that
type id property name can be modified as necessary to make it legal
XML element or attribute name.
NOTE: Since 2.17, property name cleansing only applied to default
names (like "@class" and "@type") but not to explicitly
specified ones (where caller presumably knows what to do).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static class -
Field Summary
Fields inherited from class tools.jackson.databind.jsontype.impl.StdTypeResolverBuilder
_customIdResolver, _defaultImpl, _idType, _includeAs, _requireTypeIdForSubtypes, _typeIdVisible, _typeProperty -
Constructor Summary
ConstructorsConstructorDescriptionXmlTypeResolverBuilder(com.fasterxml.jackson.annotation.JsonTypeInfo.Value typeInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected static StringdecodeXmlClassName(String className) Helper method for decoding "XML safe" Java class name back into actual class nameprotected static StringencodeXmlClassName(String className) Helper method for encoding regular Java class name in form that can be used as XML element name.protected tools.jackson.databind.jsontype.TypeIdResolveridResolver(tools.jackson.databind.DatabindContext ctxt, tools.jackson.databind.JavaType baseType, tools.jackson.databind.jsontype.PolymorphicTypeValidator subtypeValidator, Collection<tools.jackson.databind.jsontype.NamedType> subtypes, boolean forSer, boolean forDeser) Methods inherited from class tools.jackson.databind.jsontype.impl.StdTypeResolverBuilder
_hasTypeResolver, _strictTypeIdHandling, allowPrimitiveTypes, buildTypeDeserializer, buildTypeSerializer, defineDefaultImpl, getDefaultImpl, getTypeProperty, init, isTypeIdVisible, noTypeInfoBuilder, reportInvalidBaseType, subTypeValidator, verifyBaseTypeValidity, withDefaultImpl, withSettings
-
Constructor Details
-
XmlTypeResolverBuilder
public XmlTypeResolverBuilder(com.fasterxml.jackson.annotation.JsonTypeInfo.Value typeInfo)
-
-
Method Details
-
_propName
protected String _propName(String propName, com.fasterxml.jackson.annotation.JsonTypeInfo.Id idType) - Overrides:
_propNamein classtools.jackson.databind.jsontype.impl.StdTypeResolverBuilder
-
idResolver
protected tools.jackson.databind.jsontype.TypeIdResolver idResolver(tools.jackson.databind.DatabindContext ctxt, tools.jackson.databind.JavaType baseType, tools.jackson.databind.jsontype.PolymorphicTypeValidator subtypeValidator, Collection<tools.jackson.databind.jsontype.NamedType> subtypes, boolean forSer, boolean forDeser) - Overrides:
idResolverin classtools.jackson.databind.jsontype.impl.StdTypeResolverBuilder
-
encodeXmlClassName
Helper method for encoding regular Java class name in form that can be used as XML element name. -
decodeXmlClassName
Helper method for decoding "XML safe" Java class name back into actual class name
-