Module tools.jackson.dataformat.xml
Package tools.jackson.dataformat.xml
Class JacksonXmlAnnotationIntrospector
java.lang.Object
tools.jackson.databind.AnnotationIntrospector
tools.jackson.databind.introspect.JacksonAnnotationIntrospector
tools.jackson.dataformat.xml.JacksonXmlAnnotationIntrospector
- All Implemented Interfaces:
Serializable,tools.jackson.core.Versioned,tools.jackson.databind.AnnotationIntrospector.XmlExtensions,XmlAnnotationIntrospector
public class JacksonXmlAnnotationIntrospector
extends tools.jackson.databind.introspect.JacksonAnnotationIntrospector
implements XmlAnnotationIntrospector
Extension of
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).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.AnnotationIntrospector
tools.jackson.databind.AnnotationIntrospector.ReferenceProperty, tools.jackson.databind.AnnotationIntrospector.XmlExtensionsNested classes/interfaces inherited from interface tools.jackson.dataformat.xml.XmlAnnotationIntrospector
XmlAnnotationIntrospector.Pair -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanstatic final booleanFor backwards compatibility with 2.0, the default behavior is to assume use of List wrapper if no annotations are used.Fields inherited from class tools.jackson.databind.introspect.JacksonAnnotationIntrospector
_annotationsInside, _cfgConstructorPropertiesImpliesCreator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected tools.jackson.databind.PropertyName_findXmlName(tools.jackson.databind.introspect.Annotated a) tools.jackson.databind.PropertyNamefindNameForDeserialization(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated a) tools.jackson.databind.PropertyNamefindNameForSerialization(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated a) findNamespace(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated ann) tools.jackson.databind.PropertyNamefindRootName(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.AnnotatedClass ac) tools.jackson.databind.PropertyNamefindWrapperName(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated ann) isOutputAsAttribute(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated ann) isOutputAsCData(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated ann) isOutputAsText(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated ann) voidsetDefaultUseWrapper(boolean b) Methods inherited from class tools.jackson.databind.introspect.JacksonAnnotationIntrospector
_classIfExplicit, _classIfExplicit, _constructVirtualProperty, _constructVirtualProperty, _findImplicitName, _isIgnorable, _propertyName, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorAnnotation, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationConverter, findDeserializer, findEnumAliases, findEnumNamingStrategy, findEnumValues, findFilterId, findFormat, findImplicitPropertyName, findInjectableValue, findKeyDeserializer, findKeySerializer, findMergeInfo, findNamingStrategy, findNullSerializer, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPolymorphicTypeInfo, findPropertyAccess, findPropertyAliases, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnoralByName, findPropertyInclusion, findPropertyInclusionByName, findPropertyIndex, findReferenceType, findRenameByField, findSerializationContentConverter, findSerializationConverter, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationTyping, findSerializer, findSetterInfo, findSubtypes, findTypeIdResolver, findTypeName, findTypeResolverBuilder, findUnwrappingNameTransformer, findValueInstantiator, findViews, hasAnyGetter, hasAnySetter, hasAsKey, hasAsValue, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isIgnorableType, isTypeId, readResolve, refineDeserializationType, refineSerializationType, resolveSetterConflict, setConstructorPropertiesImpliesCreator, versionMethods inherited from class tools.jackson.databind.AnnotationIntrospector
_findAnnotation, _hasAnnotation, _hasOneOf, allIntrospectors, allIntrospectors, findPreferredCreator, nopInstance, pair
-
Field Details
-
DEFAULT_USE_WRAPPER
public static final boolean DEFAULT_USE_WRAPPERFor backwards compatibility with 2.0, the default behavior is to assume use of List wrapper if no annotations are used.- See Also:
-
_cfgDefaultUseWrapper
protected boolean _cfgDefaultUseWrapper
-
-
Constructor Details
-
JacksonXmlAnnotationIntrospector
public JacksonXmlAnnotationIntrospector() -
JacksonXmlAnnotationIntrospector
public JacksonXmlAnnotationIntrospector(boolean defaultUseWrapper)
-
-
Method Details
-
setDefaultUseWrapper
public void setDefaultUseWrapper(boolean b) -
findWrapperName
public tools.jackson.databind.PropertyName findWrapperName(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated ann) - Overrides:
findWrapperNamein classtools.jackson.databind.AnnotationIntrospector
-
findRootName
public tools.jackson.databind.PropertyName findRootName(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.AnnotatedClass ac) - Overrides:
findRootNamein classtools.jackson.databind.introspect.JacksonAnnotationIntrospector
-
findNamespace
public String findNamespace(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated ann) - Specified by:
findNamespacein interfacetools.jackson.databind.AnnotationIntrospector.XmlExtensions
-
isOutputAsAttribute
public Boolean isOutputAsAttribute(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated ann) - Specified by:
isOutputAsAttributein interfacetools.jackson.databind.AnnotationIntrospector.XmlExtensions
-
isOutputAsText
public Boolean isOutputAsText(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated ann) - Specified by:
isOutputAsTextin interfacetools.jackson.databind.AnnotationIntrospector.XmlExtensions
-
isOutputAsCData
public Boolean isOutputAsCData(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated ann) - Specified by:
isOutputAsCDatain interfacetools.jackson.databind.AnnotationIntrospector.XmlExtensions
-
findNameForSerialization
public tools.jackson.databind.PropertyName findNameForSerialization(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated a) - Overrides:
findNameForSerializationin classtools.jackson.databind.introspect.JacksonAnnotationIntrospector
-
findNameForDeserialization
public tools.jackson.databind.PropertyName findNameForDeserialization(tools.jackson.databind.cfg.MapperConfig<?> config, tools.jackson.databind.introspect.Annotated a) - Overrides:
findNameForDeserializationin classtools.jackson.databind.introspect.JacksonAnnotationIntrospector
-
_findXmlName
protected tools.jackson.databind.PropertyName _findXmlName(tools.jackson.databind.introspect.Annotated a)
-