Top Description Fields Constructors Methods
com.fasterxml.jackson.dataformat.xml.jaxb

public Class XmlJaxbAnnotationIntrospector

extends NopAnnotationIntrospector
implements XmlAnnotationIntrospector
Class Inheritance
All Implemented Interfaces
com.fasterxml.jackson.dataformat.xml.XmlAnnotationIntrospector, com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions
Annotations
@Deprecated
Imports
com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.*, com.fasterxml.jackson.databind.type.TypeFactory, com.fasterxml.jackson.dataformat.xml.XmlAnnotationIntrospector

Deprecated

Since 2.12 (as per above notes): broken since 2.13

Alternative com.fasterxml.jackson.databind.AnnotationIntrospector implementation that that USED TO build on JaxbAnnotationIntrospector from jackson-module-jaxb-annotatins package. But as of Jackson 2.13, SHOULD NOT BE USED as it DOES NOT WORK. Removal was necessary because XML format package does not (and can not) depend on JAXB annotations. Class WILL BE REMOVED from Jackson 2.14 or later on.

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector:
instance

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String
findNamespace(MapperConfig<?>
Configuration settings in effect
config
,
Annotated
Annotated entity to introspect
ann
)

Implements com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.findNamespace.

Method that can be called to figure out generic namespace property for an annotated object.

public Boolean
isOutputAsAttribute(MapperConfig<?>
Configuration settings in effect
config
,
Annotated
Annotated entity to introspect
ann
)

Implements com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsAttribute.

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)

public Boolean
isOutputAsCData(MapperConfig<?>
Configuration settings in effect
config
,
Annotated
Annotated entity to introspect
ann
)

Implements com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsCData.

Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be wrapped in a CDATA tag.

public Boolean
isOutputAsText(MapperConfig<?>
Configuration settings in effect
config
,
Annotated
Annotated entity to introspect
ann
)

Implements com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsText.

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.

Inherited from com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector:
version

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector.serialVersionUID.

Constructor Detail

XmlJaxbAnnotationIntrospectorback to summary
public XmlJaxbAnnotationIntrospector()

Deprecated

Annotations
@Deprecated
XmlJaxbAnnotationIntrospectorback to summary
public XmlJaxbAnnotationIntrospector(TypeFactory typeFactory)

Method Detail

findNamespaceback to summary
public String findNamespace(MapperConfig<?> config, Annotated ann)

Implements com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.findNamespace.

Doc from com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.findNamespace.

Method that can be called to figure out generic namespace property for an annotated object.

Parameters
config:MapperConfig<?>

Configuration settings in effect

ann:Annotated

Annotated entity to introspect

Returns:String

Null if annotated thing does not define any namespace information; non-null namespace (which may be empty String) otherwise.

Annotations
@Override
isOutputAsAttributeback to summary
public Boolean isOutputAsAttribute(MapperConfig<?> config, Annotated ann)

Implements com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsAttribute.

Doc from com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsAttribute.

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)

Parameters
config:MapperConfig<?>

Configuration settings in effect

ann:Annotated

Annotated entity to introspect

Returns:Boolean

Null if no indicator found; True or False otherwise

Annotations
@Override
isOutputAsCDataback to summary
public Boolean isOutputAsCData(MapperConfig<?> config, Annotated ann)

Implements com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsCData.

Doc from com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsCData.

Method used to check whether given annotated element (field, method, constructor parameter) has indicator that suggests it should be wrapped in a CDATA tag.

Parameters
config:MapperConfig<?>

Configuration settings in effect

ann:Annotated

Annotated entity to introspect

Returns:Boolean

Null if no indicator found; True or False otherwise

Annotations
@Override
isOutputAsTextback to summary
public Boolean isOutputAsText(MapperConfig<?> config, Annotated ann)

Implements com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsText.

Doc from com.fasterxml.jackson.databind.AnnotationIntrospector.XmlExtensions.isOutputAsText.

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.

Parameters
config:MapperConfig<?>

Configuration settings in effect

ann:Annotated

Annotated entity to introspect

Returns:Boolean

Null if no indicator found; True or False otherwise

Annotations
@Override