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,java.io.Serializable
- Enclosing interface:
- XmlAnnotationIntrospector
public static class XmlAnnotationIntrospector.Pair extends AnnotationIntrospectorPair implements XmlAnnotationIntrospector
Extension ofAnnotationIntrospector.Pairthat can also dispatch 'XmlAnnotationIntrospector' methods.- See Also:
- Serialized Form
-
-
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 Constructor Description Pair(AnnotationIntrospector p, AnnotationIntrospector s)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringfindNamespace(MapperConfig<?> config, Annotated ann)Method that can be called to figure out generic namespace property for an annotated object.static XmlAnnotationIntrospector.Pairinstance(AnnotationIntrospector a1, AnnotationIntrospector a2)java.lang.BooleanisOutputAsAttribute(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)java.lang.BooleanisOutputAsCData(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.java.lang.BooleanisOutputAsText(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 Detail
-
Pair
public Pair(AnnotationIntrospector p, AnnotationIntrospector s)
-
-
Method Detail
-
instance
public static XmlAnnotationIntrospector.Pair instance(AnnotationIntrospector a1, AnnotationIntrospector a2)
-
findNamespace
public java.lang.String findNamespace(MapperConfig<?> config, Annotated ann)
Description copied from interface:AnnotationIntrospector.XmlExtensionsMethod that can be called to figure out generic namespace property for an annotated object.- Specified by:
findNamespacein 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
public java.lang.Boolean isOutputAsAttribute(MapperConfig<?> config, Annotated ann)
Description copied from interface:AnnotationIntrospector.XmlExtensionsMethod 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:
isOutputAsAttributein interfaceAnnotationIntrospector.XmlExtensions- Parameters:
config- Configuration settings in effectann- Annotated entity to introspect- Returns:
- Null if no indicator found;
TrueorFalseotherwise
-
isOutputAsText
public java.lang.Boolean isOutputAsText(MapperConfig<?> config, Annotated ann)
Description copied from interface:AnnotationIntrospector.XmlExtensionsMethod 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:
isOutputAsTextin interfaceAnnotationIntrospector.XmlExtensions- Parameters:
config- Configuration settings in effectann- Annotated entity to introspect- Returns:
- Null if no indicator found;
TrueorFalseotherwise
-
isOutputAsCData
public java.lang.Boolean isOutputAsCData(MapperConfig<?> config, Annotated ann)
Description copied from interface:AnnotationIntrospector.XmlExtensionsMethod 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:
isOutputAsCDatain interfaceAnnotationIntrospector.XmlExtensions- Parameters:
config- Configuration settings in effectann- Annotated entity to introspect- Returns:
- Null if no indicator found;
TrueorFalseotherwise
-
-