public class JacksonXmlAnnotationIntrospector extends com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector implements XmlAnnotationIntrospector
JacksonAnnotationIntrospector
that is needed to support
additional xml-specific annotation that Jackson provides. Note, however, that
there is no JAXB annotation support here; that is provided with
separate introspector (see
JaxbAnnotationIntrospector
).com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty
XmlAnnotationIntrospector.JaxbWrapper, XmlAnnotationIntrospector.Pair
Modifier and Type | Field and Description |
---|---|
protected boolean |
_cfgDefaultUseWrapper |
static boolean |
DEFAULT_USE_WRAPPER
For backwards compatibility with 2.0, the default behavior is
to assume use of List wrapper if no annotations are used.
|
Constructor and Description |
---|
JacksonXmlAnnotationIntrospector() |
JacksonXmlAnnotationIntrospector(boolean defaultUseWrapper) |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder |
_constructStdTypeResolverBuilder()
We will override this method so that we can return instance
that cleans up type id property name to be a valid xml name.
|
protected com.fasterxml.jackson.databind.PropertyName |
_findXmlName(com.fasterxml.jackson.databind.introspect.Annotated a) |
com.fasterxml.jackson.databind.PropertyName |
findNameForDeserialization(com.fasterxml.jackson.databind.introspect.Annotated a) |
com.fasterxml.jackson.databind.PropertyName |
findNameForSerialization(com.fasterxml.jackson.databind.introspect.Annotated a) |
String |
findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)
Method that can be called to figure out generic namespace
property for an annotated object.
|
com.fasterxml.jackson.databind.PropertyName |
findRootName(com.fasterxml.jackson.databind.introspect.AnnotatedClass ac) |
com.fasterxml.jackson.databind.PropertyName |
findWrapperName(com.fasterxml.jackson.databind.introspect.Annotated ann) |
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)
|
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.
|
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) |
_classIfExplicit, _classIfExplicit, _constructNoTypeResolverBuilder, _constructVirtualProperty, _constructVirtualProperty, _findConstructorName, _findTypeResolver, _isIgnorable, _propertyName, findAndAddVirtualProperties, findAutoDetectVisibility, findClassDescription, findContentDeserializer, findContentSerializer, findCreatorBinding, findDefaultEnumValue, findDeserializationContentConverter, findDeserializationContentType, findDeserializationConverter, findDeserializationKeyType, findDeserializationType, findDeserializer, findEnumValue, findEnumValues, findFilterId, findFormat, findIgnoreUnknownProperties, findImplicitPropertyName, findInjectableValueId, findKeyDeserializer, findKeySerializer, findNamingStrategy, findNullSerializer, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPropertiesToIgnore, findPropertyAccess, findPropertyContentTypeResolver, findPropertyDefaultValue, findPropertyDescription, findPropertyIgnorals, findPropertyInclusion, findPropertyIndex, findPropertyTypeResolver, findReferenceType, findSerializationContentConverter, findSerializationContentType, findSerializationConverter, findSerializationInclusion, findSerializationInclusionForContent, findSerializationKeyType, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializationTyping, findSerializer, findSubtypes, findTypeName, findTypeResolver, findUnwrappingNameTransformer, findValueInstantiator, findViews, hasAnyGetterAnnotation, hasAnySetterAnnotation, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isIgnorableType, isTypeId, readResolve, resolveSetterConflict, setConstructorPropertiesImpliesCreator, version
public static final boolean DEFAULT_USE_WRAPPER
protected boolean _cfgDefaultUseWrapper
public JacksonXmlAnnotationIntrospector()
public JacksonXmlAnnotationIntrospector(boolean defaultUseWrapper)
public com.fasterxml.jackson.databind.PropertyName findWrapperName(com.fasterxml.jackson.databind.introspect.Annotated ann)
findWrapperName
in class com.fasterxml.jackson.databind.AnnotationIntrospector
public com.fasterxml.jackson.databind.PropertyName findRootName(com.fasterxml.jackson.databind.introspect.AnnotatedClass ac)
findRootName
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
public String findNamespace(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAnnotationIntrospector
findNamespace
in interface XmlAnnotationIntrospector
public Boolean isOutputAsAttribute(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAnnotationIntrospector
isOutputAsAttribute
in interface XmlAnnotationIntrospector
public Boolean isOutputAsText(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAnnotationIntrospector
isOutputAsText
in interface XmlAnnotationIntrospector
public Boolean isOutputAsCData(com.fasterxml.jackson.databind.introspect.Annotated ann)
XmlAnnotationIntrospector
isOutputAsCData
in interface XmlAnnotationIntrospector
public void setDefaultUseWrapper(boolean b)
setDefaultUseWrapper
in interface XmlAnnotationIntrospector
public com.fasterxml.jackson.databind.PropertyName findNameForSerialization(com.fasterxml.jackson.databind.introspect.Annotated a)
findNameForSerialization
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
public com.fasterxml.jackson.databind.PropertyName findNameForDeserialization(com.fasterxml.jackson.databind.introspect.Annotated a)
findNameForDeserialization
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
protected com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder _constructStdTypeResolverBuilder()
_constructStdTypeResolverBuilder
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
protected com.fasterxml.jackson.databind.PropertyName _findXmlName(com.fasterxml.jackson.databind.introspect.Annotated a)
Copyright © 2016 FasterXML. All rights reserved.