
com.github.fartherp.framework.common.validate.DateValue Maven / Gradle / Ivy
/*
* Copyright (c) 2018. CK. All rights reserved.
*/
package com.github.fartherp.framework.common.validate;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
/**
* Created by IntelliJ IDEA.
*
* @author: CK
* @date: 2018/12/20
*/
@Target(value = {METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = DateValueValidator.class)
@Documented
public @interface DateValue {
String message() default "{com.github.fartherp.framework.common.validate.DateValue.message}";
Class>[] groups() default {};
Class extends Payload>[] payload() default {};
String values();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy