Top Description Fields Methods
com.fasterxml.jackson.dataformat.xml.annotation

public @Interface JacksonXmlElementWrapper

extends Annotation
Annotations
@Target:ANNOTATION_TYPE, FIELD, METHOD, PARAMETER
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Annotation that is similar to JAXB jakarta.xml.bind.annotation.XmlElementWrapper, to indicate wrapper element to use (if any) for Collection types (arrays, java.util.Collection). If defined, a separate container (wrapper) element is used; if not, entries are written without wrapping.

Field Summary

Modifier and TypeField and Description
public static final String
USE_PROPERTY_NAME

Marker value (empty String) that denotes that the underlying property name should also be used as the wrapper name, effectively "doubling" start and end elements.

Method Summary

Modifier and TypeMethod and Description
public String
public String
public boolean
useWrapping()

Optional property that can be used to explicitly disable wrapping, usually via mix-ins, or when using AnnotationIntrospector pairs.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Field Detail

USE_PROPERTY_NAMEback to summary
public static final String USE_PROPERTY_NAME

Marker value (empty String) that denotes that the underlying property name should also be used as the wrapper name, effectively "doubling" start and end elements.

Since
2.1

Method Detail

localNameback to summary
public String localName()
namespaceback to summary
public String namespace()
useWrappingback to summary
public boolean useWrapping()

Optional property that can be used to explicitly disable wrapping, usually via mix-ins, or when using AnnotationIntrospector pairs.

Since
2.1