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

sjson.json.JSONProperty Maven / Gradle / Ivy

package sjson.json;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import java.lang.annotation.Retention;

@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Target(value = ElementType.METHOD)
public @interface JSONProperty 
{
    /**
     * JSON property name to use for this property. if not given, the java property name is used.
     * @return
     */
    String value() default "";

    /**
     * if true, always ignore the property.
     * @return
     */
    boolean ignore() default false;

    /**
     * if true, ignore the property if it contains a null value.
     * @return
     */
    boolean ignoreIfNull() default false;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy