Class XmlJaxbAnnotationIntrospector
- java.lang.Object
-
- com.fasterxml.jackson.databind.AnnotationIntrospector
-
- com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
-
- com.fasterxml.jackson.dataformat.xml.jaxb.XmlJaxbAnnotationIntrospector
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
,XmlAnnotationIntrospector
,java.io.Serializable
public class XmlJaxbAnnotationIntrospector extends com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector implements XmlAnnotationIntrospector
AlternativeAnnotationIntrospector
implementation that builds onJaxbAnnotationIntrospector
.NOTE: since version 2.4, it may NOT be necessary to use this class; instead, plain
JaxbAnnotationIntrospector
should fully work. With previous versions some aspects were not fully working and this class was necessary.- 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 inherited from class com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
_dataHandlerDeserializer, _dataHandlerSerializer, _ignoreXmlIDREF, _jaxbPackageName, _nonNillableInclusion, _typeFactory, _xmlValueName, DEFAULT_IGNORE_XMLIDREF, DEFAULT_NAME_FOR_XML_VALUE, FORMAT_INT, FORMAT_STRING, MARKER_FOR_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description XmlJaxbAnnotationIntrospector()
Deprecated.XmlJaxbAnnotationIntrospector(com.fasterxml.jackson.databind.type.TypeFactory typeFactory)
-
Method Summary
All 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.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.module.jaxb.JaxbAnnotationIntrospector
_converter, _doFindDeserializationType, _findContentAdapter, _fullDeserializationType, _fullSerializationType, _getTypeFromXmlElement, _propertyNameToString, _rawDeserializationType, _rawSerializationType, _typeResolverFromXmlElements, findAccessType, findAutoDetectVisibility, findContentDeserializer, findContentSerializer, findDeserializationContentConverter, findDeserializationContentType, findDeserializationConverter, findDeserializationType, findDeserializer, findEnumValue, findEnumValues, findFormat, findImplicitPropertyName, findKeyDeserializer, findNameForDeserialization, findNameForSerialization, findObjectIdInfo, findObjectReferenceInfo, findPropertyContentTypeResolver, findPropertyInclusion, findPropertyTypeResolver, findRootName, findSerializationContentConverter, findSerializationConverter, findSerializationInclusion, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializer, findSubtypes, findTypeName, findTypeResolver, findWrapperName, getNameUsedForXmlValue, getNonNillableInclusion, getTypeFactory, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isIgnorableType, isJAXBAnnotation, refineDeserializationType, refineSerializationType, setNameUsedForXmlValue, setNonNillableInclusion, version
-
Methods inherited from class com.fasterxml.jackson.databind.AnnotationIntrospector
_findAnnotation, _hasAnnotation, _hasOneOf, allIntrospectors, allIntrospectors, findAndAddVirtualProperties, findClassDescription, findCreatorAnnotation, findCreatorBinding, findDefaultEnumValue, findDeserializationKeyType, findFilterId, findIgnoreUnknownProperties, findInjectableValue, findInjectableValueId, findKeySerializer, findMergeInfo, findNamingStrategy, findNullSerializer, findPOJOBuilder, findPOJOBuilderConfig, findPropertiesToIgnore, findPropertiesToIgnore, findPropertyAccess, findPropertyAliases, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnorals, findPropertyIndex, findReferenceType, findSerializationContentType, findSerializationInclusionForContent, findSerializationKeyType, findSerializationTyping, findSetterInfo, findUnwrappingNameTransformer, findValueInstantiator, findViews, hasAnyGetter, hasAnyGetterAnnotation, hasAnySetter, hasAnySetterAnnotation, hasAsValue, isAnnotationBundle, isTypeId, nopInstance, pair, resolveSetterConflict
-
-
-
-
Method Detail
-
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
- Overrides:
findNamespace
in classcom.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
- 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
- Overrides:
isOutputAsAttribute
in classcom.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
-
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
- Overrides:
isOutputAsText
in classcom.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
-
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
-
-