Top Description Inners Methods
tools.jackson.dataformat.xml

public Interface XmlAnnotationIntrospector

extends XmlExtensions
Known Direct Implementers
tools.jackson.dataformat.xml.XmlAnnotationIntrospector.Pair, tools.jackson.dataformat.xml.JacksonXmlAnnotationIntrospector
Imports
tools.jackson.databind.AnnotationIntrospector, tools.jackson.databind.cfg.MapperConfig, tools.jackson.databind.introspect.Annotated, .AnnotationIntrospectorPair

Additional extension interface used above and beyond AnnotationIntrospector to handle XML-specific configuration.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
XmlAnnotationIntrospector.Pair

Extension of AnnotationIntrospector.Pair that can also dispatch 'XmlAnnotationIntrospector' methods.

Method Summary

Inherited from tools.jackson.databind.AnnotationIntrospector.XmlExtensions:
findNamespaceisOutputAsAttributeisOutputAsCDataisOutputAsText
tools.jackson.dataformat.xml back to summary

public Class XmlAnnotationIntrospector.Pair

extends AnnotationIntrospectorPair
implements XmlAnnotationIntrospector
Class Inheritance
All Implemented Interfaces
tools.jackson.dataformat.xml.XmlAnnotationIntrospector, tools.jackson.databind.AnnotationIntrospector.XmlExtensions

Extension of AnnotationIntrospector.Pair that can also dispatch 'XmlAnnotationIntrospector' methods.

Field Summary

Modifier and TypeField and Description
protected final AnnotationIntrospector.XmlExtensions
protected final AnnotationIntrospector.XmlExtensions
private static final long
Inherited from tools.jackson.databind.introspect.AnnotationIntrospectorPair:
_primary_secondary

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
findNamespace(MapperConfig<?> config, Annotated ann)

Implements tools.jackson.databind.AnnotationIntrospector.XmlExtensions.findNamespace.

Method that can be called to figure out generic namespace property for an annotated object.

public static XmlAnnotationIntrospector.Pair
public Boolean
isOutputAsAttribute(MapperConfig<?> config, Annotated ann)

Implements tools.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsAttribute.

Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it be output as an XML attribute or not (if not, then as element)

public Boolean
isOutputAsCData(MapperConfig<?> config, Annotated ann)

Implements tools.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsCData.

Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be wrapped in a CDATA tag.

public Boolean
isOutputAsText(MapperConfig<?> config, Annotated ann)

Implements tools.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsText.

Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be serialized as text, without element wrapper.

Inherited from tools.jackson.databind.introspect.AnnotationIntrospectorPair:
_explicitClassOrOb_isExplicitClassOrOballIntrospectorsallIntrospectorscreatefindAndAddVirtualPropertiesfindAutoDetectVisibilityfindClassDescriptionfindContentDeserializerfindContentSerializerfindCreatorAnnotationfindDefaultEnumValuefindDeserializationContentConverterfindDeserializationConverterfindDeserializerfindEnumAliasesfindEnumNamingStrategyfindEnumValuesfindFilterIdfindFormatfindImplicitPropertyNamefindInjectableValuefindKeyDeserializerfindKeySerializerfindMergeInfofindNameForDeserializationfindNameForSerializationfindNamingStrategyfindNullSerializerfindObjectIdInfofindObjectReferenceInfofindPOJOBuilderfindPOJOBuilderConfigfindPolymorphicTypeInfofindPreferredCreatorfindPropertyAccessfindPropertyAliasesfindPropertyDefaultValuefindPropertyDescriptionfindPropertyIgnoralByNamefindPropertyInclusionfindPropertyInclusionByNamefindPropertyIndexfindReferenceTypefindRenameByFieldfindRootNamefindSerializationContentConverterfindSerializationConverterfindSerializationPropertyOrderfindSerializationSortAlphabeticallyfindSerializationTypingfindSerializerfindSetterInfofindSubtypesfindTypeIdResolverfindTypeNamefindTypeResolverBuilderfindUnwrappingNameTransformerfindValueInstantiatorfindViewsfindWrapperNamehasAnyGetterhasAnySetterhasAsKeyhasAsValuehasIgnoreMarkerhasRequiredMarkerisAnnotationBundleisIgnorableTypeisTypeIdrefineDeserializationTyperefineSerializationTyperesolveSetterConflictversion

Field Detail

_xmlPrimaryback to summary
protected final AnnotationIntrospector.XmlExtensions _xmlPrimary
_xmlSecondaryback to summary
protected final AnnotationIntrospector.XmlExtensions _xmlSecondary
serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.databind.introspect.AnnotationIntrospectorPair.serialVersionUID.

Constructor Detail

Pairback to summary
public Pair(AnnotationIntrospector p, AnnotationIntrospector s)

Method Detail

findNamespaceback to summary
public String findNamespace(MapperConfig<?> config, Annotated ann)

Implements tools.jackson.databind.AnnotationIntrospector.XmlExtensions.findNamespace.

Doc from tools.jackson.databind.AnnotationIntrospector.XmlExtensions.findNamespace.

Method that can be called to figure out generic namespace property for an annotated object.

Annotations
@Override
instanceback to summary
public static XmlAnnotationIntrospector.Pair instance(AnnotationIntrospector a1, AnnotationIntrospector a2)
isOutputAsAttributeback to summary
public Boolean isOutputAsAttribute(MapperConfig<?> config, Annotated ann)

Implements tools.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsAttribute.

Doc from tools.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsAttribute.

Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it be output as an XML attribute or not (if not, then as element)

Annotations
@Override
isOutputAsCDataback to summary
public Boolean isOutputAsCData(MapperConfig<?> config, Annotated ann)

Implements tools.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsCData.

Doc from tools.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsCData.

Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be wrapped in a CDATA tag.

Annotations
@Override
isOutputAsTextback to summary
public Boolean isOutputAsText(MapperConfig<?> config, Annotated ann)

Implements tools.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsText.

Doc from tools.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsText.

Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be serialized as text, without element wrapper.

Annotations
@Override