com.github.antelopeframework.validation.FileSuffix Maven / Gradle / Ivy
The newest version!
package com.github.antelopeframework.validation;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;
@Target( { PARAMETER, FIELD })
@Retention(RUNTIME)
@Constraint(validatedBy = FileSuffixValidator.class)
@Documented
public @interface FileSuffix {
String suffix();
String message() default "invalid file type";
Class>[] groups() default {};
Class extends Payload>[] payload() default { };
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy