com.fasterxml.jackson.dataformat.xml.annotation
Annotation Type JacksonXmlElementWrapper


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface JacksonXmlElementWrapper

Annotation that is similar to JAXB javax.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.


Optional Element Summary
 String localName
           
 String namespace
           
 boolean useWrapping
          Optional property that can be used to explicitly disable wrapping, usually via mix-ins, or when using AnnotationIntrospector pairs.
 

namespace

public abstract String namespace
Default:
""

localName

public abstract String localName
Default:
""

useWrapping

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

Since:
2.1
Default:
true


Copyright © 2012 FasterXML. All Rights Reserved.