All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.jackson.xml.annotate.JacksonXmlElementWrapper Maven / Gradle / Ivy

package com.fasterxml.jackson.xml.annotate;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.codehaus.jackson.annotate.JacksonAnnotation;

/**
 * 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.
 * Name of wrapper element defaults to name of the property but can be explicitly defined
 * to something else.
 * 
 * @author tatu
 */
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotation
public @interface JacksonXmlElementWrapper
{
    String namespace() default "";
    String localName() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy