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

com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
package com.fasterxml.jackson.dataformat.xml.annotation;

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

/**
 * Adding this annotation will result in value of the property to be serialized
 * within a CData tag.  Only use on String properties and String collections.
 */
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
public @interface JacksonXmlCData
{
    /**
     * Whether the property text should always be within a CData block
     * when serialized.
     */
    public boolean value() default true;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy