public class JacksonXmlAnnotationIntrospector extends com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector implements XmlAnnotationIntrospector
JacksonAnnotationIntrospector
that is needed to support
additional xml-specific annotation that Jackson provides. Note, however, that
there is no JAXB annotation support here; that is provided with
separate introspector (see
https://github.com/FasterXML/jackson-modules-base/tree/master/jaxb,
class com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
).com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty, com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions
XmlAnnotationIntrospector.Pair
Modifier and Type | Field and Description |
---|---|
protected boolean |
_cfgDefaultUseWrapper |
static boolean |
DEFAULT_USE_WRAPPER
For backwards compatibility with 2.0, the default behavior is
to assume use of List wrapper if no annotations are used.
|
Constructor and Description |
---|
JacksonXmlAnnotationIntrospector() |
JacksonXmlAnnotationIntrospector(boolean defaultUseWrapper) |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder |
_constructStdTypeResolverBuilder()
We will override this method so that we can return instance
that cleans up type id property name to be a valid xml name.
|
protected com.fasterxml.jackson.databind.PropertyName |
_findXmlName(com.fasterxml.jackson.databind.introspect.Annotated a) |
com.fasterxml.jackson.databind.PropertyName |
findNameForDeserialization(com.fasterxml.jackson.databind.introspect.Annotated a) |
com.fasterxml.jackson.databind.PropertyName |
findNameForSerialization(com.fasterxml.jackson.databind.introspect.Annotated a) |
String |
findNamespace(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config,
com.fasterxml.jackson.databind.introspect.Annotated ann) |
com.fasterxml.jackson.databind.PropertyName |
findRootName(com.fasterxml.jackson.databind.introspect.AnnotatedClass ac) |
com.fasterxml.jackson.databind.PropertyName |
findWrapperName(com.fasterxml.jackson.databind.introspect.Annotated ann) |
Boolean |
isOutputAsAttribute(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config,
com.fasterxml.jackson.databind.introspect.Annotated ann) |
Boolean |
isOutputAsCData(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config,
com.fasterxml.jackson.databind.introspect.Annotated ann) |
Boolean |
isOutputAsText(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config,
com.fasterxml.jackson.databind.introspect.Annotated ann) |
void |
setDefaultUseWrapper(boolean b) |
_classIfExplicit, _classIfExplicit, _constructNoTypeResolverBuilder, _constructVirtualProperty, _constructVirtualProperty, _findConstructorName, _findTypeResolver, _isIgnorable, _propertyName, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorAnnotation, findCreatorBinding, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationContentType, findDeserializationConverter, findDeserializationKeyType, findDeserializationType, findDeserializer, findEnumAliases, findEnumValue, findEnumValues, findFilterId, findFormat, findImplicitPropertyName, findInjectableValue, findInjectableValueId, findKeyDeserializer, findKeySerializer, findMergeInfo, findNamingStrategy, findNullSerializer, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPropertyAccess, findPropertyAliases, findPropertyContentTypeResolver, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnoralByName, findPropertyIgnorals, findPropertyInclusion, findPropertyInclusionByName, findPropertyIndex, findPropertyTypeResolver, findReferenceType, findRenameByField, findSerializationContentConverter, findSerializationContentType, findSerializationConverter, findSerializationKeyType, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializationTyping, findSerializer, findSetterInfo, findSubtypes, findTypeName, findTypeResolver, findUnwrappingNameTransformer, findValueInstantiator, findViews, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsKey, hasAsValue, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isIgnorableType, isTypeId, readResolve, refineDeserializationType, refineSerializationType, resolveSetterConflict, setConstructorPropertiesImpliesCreator, version
public static final boolean DEFAULT_USE_WRAPPER
protected boolean _cfgDefaultUseWrapper
public JacksonXmlAnnotationIntrospector()
public JacksonXmlAnnotationIntrospector(boolean defaultUseWrapper)
public void setDefaultUseWrapper(boolean b)
public com.fasterxml.jackson.databind.PropertyName findWrapperName(com.fasterxml.jackson.databind.introspect.Annotated ann)
findWrapperName
in class com.fasterxml.jackson.databind.AnnotationIntrospector
public com.fasterxml.jackson.databind.PropertyName findRootName(com.fasterxml.jackson.databind.introspect.AnnotatedClass ac)
findRootName
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
public String findNamespace(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config, com.fasterxml.jackson.databind.introspect.Annotated ann)
findNamespace
in interface com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions
public Boolean isOutputAsAttribute(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config, com.fasterxml.jackson.databind.introspect.Annotated ann)
isOutputAsAttribute
in interface com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions
public Boolean isOutputAsText(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config, com.fasterxml.jackson.databind.introspect.Annotated ann)
isOutputAsText
in interface com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions
public Boolean isOutputAsCData(com.fasterxml.jackson.databind.cfg.MapperConfig<?> config, com.fasterxml.jackson.databind.introspect.Annotated ann)
isOutputAsCData
in interface com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions
public com.fasterxml.jackson.databind.PropertyName findNameForSerialization(com.fasterxml.jackson.databind.introspect.Annotated a)
findNameForSerialization
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
public com.fasterxml.jackson.databind.PropertyName findNameForDeserialization(com.fasterxml.jackson.databind.introspect.Annotated a)
findNameForDeserialization
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
protected com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder _constructStdTypeResolverBuilder()
_constructStdTypeResolverBuilder
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
protected com.fasterxml.jackson.databind.PropertyName _findXmlName(com.fasterxml.jackson.databind.introspect.Annotated a)
Copyright © 2022 FasterXML. All rights reserved.