Class XmlAnnotationIntrospector.Pair
java.lang.Object
com.fasterxml.jackson.databind.AnnotationIntrospector
com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair
com.fasterxml.jackson.dataformat.xml.XmlAnnotationIntrospector.Pair
- All Implemented Interfaces:
Versioned
,AnnotationIntrospector.XmlExtensions
,XmlAnnotationIntrospector
,Serializable
- Enclosing interface:
XmlAnnotationIntrospector
public static class XmlAnnotationIntrospector.Pair
extends AnnotationIntrospectorPair
implements XmlAnnotationIntrospector
Extension of
AnnotationIntrospector.Pair
that can
also dispatch 'XmlAnnotationIntrospector' methods.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector
AnnotationIntrospector.ReferenceProperty, AnnotationIntrospector.XmlExtensions
Nested classes/interfaces inherited from interface com.fasterxml.jackson.dataformat.xml.XmlAnnotationIntrospector
XmlAnnotationIntrospector.Pair
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindNamespace
(MapperConfig<?> config, Annotated ann) Method that can be called to figure out generic namespace property for an annotated object.isOutputAsAttribute
(MapperConfig<?> config, Annotated ann) 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)isOutputAsCData
(MapperConfig<?> config, Annotated ann) Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be wrapped in a CDATA tag.isOutputAsText
(MapperConfig<?> config, Annotated ann) 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.Methods inherited from class com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair
allIntrospectors, allIntrospectors, create, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorAnnotation, findCreatorBinding, findDefaultEnumValue, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationConverter, findDeserializer, findEnumAliases, findEnumAliases, findEnumNamingStrategy, findEnumValue, findEnumValues, findEnumValues, findFilterId, findFormat, findImplicitPropertyName, findInjectableValue, findInjectableValueId, findKeyDeserializer, findKeySerializer, findMergeInfo, findNameForDeserialization, findNameForSerialization, findNamingStrategy, findNullSerializer, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPolymorphicTypeInfo, findPropertyAccess, findPropertyAliases, findPropertyContentTypeResolver, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnoralByName, findPropertyIgnorals, findPropertyInclusion, findPropertyInclusionByName, findPropertyIndex, findPropertyTypeResolver, findReferenceType, findRenameByField, findRootName, findSerializationContentConverter, findSerializationConverter, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationTyping, findSerializer, findSetterInfo, findSubtypes, findTypeName, findTypeResolver, findUnwrappingNameTransformer, findValueInstantiator, findViews, findWrapperName, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsKey, hasAsValue, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isIgnorableType, isTypeId, refineDeserializationType, refineSerializationType, resolveSetterConflict, version
Methods inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector
nopInstance, pair
-
Constructor Details
-
Pair
-
-
Method Details
-
instance
public static XmlAnnotationIntrospector.Pair instance(AnnotationIntrospector a1, AnnotationIntrospector a2) -
findNamespace
Description copied from interface:AnnotationIntrospector.XmlExtensions
Method that can be called to figure out generic namespace property for an annotated object.- Specified by:
findNamespace
in interfaceAnnotationIntrospector.XmlExtensions
- Parameters:
config
- Configuration settings in effectann
- Annotated entity to introspect- Returns:
- Null if annotated thing does not define any namespace information; non-null namespace (which may be empty String) otherwise.
-
isOutputAsAttribute
Description copied from interface:AnnotationIntrospector.XmlExtensions
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)- Specified by:
isOutputAsAttribute
in interfaceAnnotationIntrospector.XmlExtensions
- Parameters:
config
- Configuration settings in effectann
- Annotated entity to introspect- Returns:
- Null if no indicator found;
True
orFalse
otherwise
-
isOutputAsText
Description copied from interface:AnnotationIntrospector.XmlExtensions
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.- Specified by:
isOutputAsText
in interfaceAnnotationIntrospector.XmlExtensions
- Parameters:
config
- Configuration settings in effectann
- Annotated entity to introspect- Returns:
- Null if no indicator found;
True
orFalse
otherwise
-
isOutputAsCData
Description copied from interface:AnnotationIntrospector.XmlExtensions
Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be wrapped in a CDATA tag.- Specified by:
isOutputAsCData
in interfaceAnnotationIntrospector.XmlExtensions
- Parameters:
config
- Configuration settings in effectann
- Annotated entity to introspect- Returns:
- Null if no indicator found;
True
orFalse
otherwise
-