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

com.ijson.rest.proxy.annotation.INField Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package com.ijson.rest.proxy.annotation;

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

/**
 * Created by cuiyongxu on 17/7/17.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface INField {
    /**
     * field name
     * @return field name
     */
    String name() default "";

    /**
     * simple description
     * @return desc
     */
    String desc() default "";

    /**
     * remark information
     * @return remark
     */
    String remark() default "";
    /**
     * required
     * @return required
     */
    boolean required() default false;

    /**
     * @return requiredMessage
     */
    String requiredMessage() default "[ {0} ] is a required field";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy