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.Pair, com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty
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) |
String |
findDeserializationName(com.fasterxml.jackson.databind.introspect.AnnotatedField af)
Deprecated.
|
String |
findDeserializationName(com.fasterxml.jackson.databind.introspect.AnnotatedMethod am)
Deprecated.
|
String |
findDeserializationName(com.fasterxml.jackson.databind.introspect.AnnotatedParameter ap)
Deprecated.
|
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) |
String |
findSerializationName(com.fasterxml.jackson.databind.introspect.AnnotatedField af)
Deprecated.
|
String |
findSerializationName(com.fasterxml.jackson.databind.introspect.AnnotatedMethod am)
Deprecated.
|
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 |
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.
|
_constructNoTypeResolverBuilder, _findTypeResolver, _isIgnorable, findAutoDetectVisibility, findContentDeserializer, findContentSerializer, findDeserializationContentConverter, findDeserializationContentType, findDeserializationConverter, findDeserializationKeyType, findDeserializationType, findDeserializer, findFilterId, findFormat, findFormat, findIgnoreUnknownProperties, findInjectableValueId, findKeyDeserializer, findKeySerializer, findNamingStrategy, findObjectIdInfo, findObjectReferenceInfo, findPOJOBuilder, findPOJOBuilderConfig, findPropertiesToIgnore, findPropertyContentTypeResolver, findPropertyTypeResolver, findReferenceType, findSerializationContentConverter, findSerializationContentType, findSerializationConverter, findSerializationInclusion, findSerializationKeyType, findSerializationPropertyOrder, findSerializationSortAlphabetically, findSerializationType, findSerializationTyping, findSerializer, findSubtypes, findTypeName, findTypeResolver, findUnwrappingNameTransformer, findValueInstantiator, findViews, hasAnyGetterAnnotation, hasAnySetterAnnotation, hasAsValueAnnotation, hasCreatorAnnotation, hasIgnoreMarker, hasRequiredMarker, isAnnotationBundle, isHandled, isIgnorableType, isTypeId, version
public static final boolean DEFAULT_USE_WRAPPER
protected final 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 com.fasterxml.jackson.databind.PropertyName findNameForSerialization(com.fasterxml.jackson.databind.introspect.Annotated a)
findNameForSerialization
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
@Deprecated public String findSerializationName(com.fasterxml.jackson.databind.introspect.AnnotatedField af)
findSerializationName
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
@Deprecated public String findSerializationName(com.fasterxml.jackson.databind.introspect.AnnotatedMethod am)
findSerializationName
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
@Deprecated public String findDeserializationName(com.fasterxml.jackson.databind.introspect.AnnotatedField af)
findDeserializationName
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
@Deprecated public String findDeserializationName(com.fasterxml.jackson.databind.introspect.AnnotatedMethod am)
findDeserializationName
in class com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector
@Deprecated public String findDeserializationName(com.fasterxml.jackson.databind.introspect.AnnotatedParameter ap)
findDeserializationName
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 © 2012-2013 FasterXML. All Rights Reserved.