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:
com.fasterxml.jackson.core.Versioned
,XmlAnnotationIntrospector
,java.io.Serializable
- Enclosing interface:
- XmlAnnotationIntrospector
public static class XmlAnnotationIntrospector.Pair extends com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair implements XmlAnnotationIntrospector
Extension ofAnnotationIntrospector.Pair
that can also dispatch 'XmlAnnotationIntrospector' methods.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector
com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.dataformat.xml.XmlAnnotationIntrospector
XmlAnnotationIntrospector.JaxbWrapper, XmlAnnotationIntrospector.Pair
-
-
Field Summary
Fields Modifier and Type Field Description protected XmlAnnotationIntrospector
_xmlPrimary
protected XmlAnnotationIntrospector
_xmlSecondary
-
Constructor Summary
Constructors Constructor Description Pair(com.fasterxml.jackson.databind.AnnotationIntrospector p, com.fasterxml.jackson.databind.AnnotationIntrospector s)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)
Method that can be called to figure out generic namespace property for an annotated object.static XmlAnnotationIntrospector.Pair
instance(com.fasterxml.jackson.databind.AnnotationIntrospector a1, com.fasterxml.jackson.databind.AnnotationIntrospector a2)
java.lang.Boolean
isOutputAsAttribute(com.fasterxml.jackson.databind.introspect.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 (as element)java.lang.Boolean
isOutputAsCData(com.fasterxml.jackson.databind.introspect.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.Boolean
isOutputAsText(com.fasterxml.jackson.databind.introspect.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.void
setDefaultUseWrapper(boolean b)
-
Methods inherited from class com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair
_explicitClassOrOb, _isExplicitClassOrOb, allIntrospectors, allIntrospectors, create, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorAnnotation, findCreatorBinding, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationContentType, findDeserializationConverter, findDeserializationKeyType, findDeserializationType, findDeserializer, findEnumValue, findEnumValues, findFilterId, findFormat, findIgnoreUnknownProperties, findImplicitPropertyName, findInjectableValue, findInjectableValueId, findKeyDeserializer, findKeySerializer, findMergeInfo, findNameForDeserialization, findNameForSerialization, findNamingStrategy, findNullSerializer, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPropertiesToIgnore, findPropertiesToIgnore, findPropertyAccess, findPropertyAliases, findPropertyContentTypeResolver, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnorals, findPropertyInclusion, findPropertyIndex, findPropertyTypeResolver, findReferenceType, findRootName, findSerializationContentConverter, findSerializationContentType, findSerializationConverter, findSerializationInclusion, findSerializationInclusionForContent, findSerializationKeyType, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializationTyping, findSerializer, findSetterInfo, findSubtypes, findTypeName, findTypeResolver, findUnwrappingNameTransformer, findValueInstantiator, findViews, findWrapperName, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsValue, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isIgnorableType, isTypeId, refineDeserializationType, refineSerializationType, resolveSetterConflict, version
-
-
-
-
Field Detail
-
_xmlPrimary
protected final XmlAnnotationIntrospector _xmlPrimary
-
_xmlSecondary
protected final XmlAnnotationIntrospector _xmlSecondary
-
-
Method Detail
-
instance
public static XmlAnnotationIntrospector.Pair instance(com.fasterxml.jackson.databind.AnnotationIntrospector a1, com.fasterxml.jackson.databind.AnnotationIntrospector a2)
-
findNamespace
public java.lang.String findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)
Description copied from interface:XmlAnnotationIntrospector
Method that can be called to figure out generic namespace property for an annotated object.- Specified by:
findNamespace
in interfaceXmlAnnotationIntrospector
- 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(com.fasterxml.jackson.databind.introspect.Annotated ann)
Description copied from interface:XmlAnnotationIntrospector
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 (as element)- Specified by:
isOutputAsAttribute
in interfaceXmlAnnotationIntrospector
-
isOutputAsText
public java.lang.Boolean isOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)
Description copied from interface:XmlAnnotationIntrospector
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 interfaceXmlAnnotationIntrospector
-
isOutputAsCData
public java.lang.Boolean isOutputAsCData(com.fasterxml.jackson.databind.introspect.Annotated ann)
Description copied from interface:XmlAnnotationIntrospector
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 interfaceXmlAnnotationIntrospector
-
setDefaultUseWrapper
public void setDefaultUseWrapper(boolean b)
- Specified by:
setDefaultUseWrapper
in interfaceXmlAnnotationIntrospector
-
-