com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-all Show documentation
Show all versions of swagger-all Show documentation
swagger-all is a rebundled verison of Swagger as one OSGi bundle.
The newest version!
package com.fasterxml.jackson.dataformat.xml.annotation;
import java.lang.annotation.*;
/**
* Interface that is loosely similar to {@link javax.xml.bind.annotation.XmlValue}
* in that it can be used on one (and only one!) property of a POJO.
* It will result in value of the property be serialized without element wrapper,
* as long as there are no element-wrapped other properties (attribute-valued
* properties are acceptable).
* It is also similar to core Jackson JsonValue
annotation; but
* has to be separate as JsonValue
does not allow any other
* properties.
*/
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface JacksonXmlText
{
/**
* Whether serialization of the property should always be done as basic
* XML text or not; if true, will be, if false, not.
*/
public boolean value() default true;
}