com.fasterxml.jackson.xml.annotate.JacksonXmlProperty 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 can be used to provide XML-specific configuration
* for properties, above and beyond what
* {@link org.codehaus.jackson.annotate.JsonProperty} contains.
* It is an alternative to using JAXB annotations.
*/
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotation
public @interface JacksonXmlProperty
{
boolean isAttribute() default false;
String namespace() default "";
String localName() default "";
}