nl.vpro.validation.PathSegment Maven / Gradle / Ivy
/*
* Copyright (C) 2014 All rights reserved
* VPRO The Netherlands
*/
package nl.vpro.validation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* @author rico
* @since 3.0
*/
@Target({METHOD, FIELD, ANNOTATION_TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy = PathSegmentValidator.class)
@Documented
public @interface PathSegment {
String message() default "{nl.vpro.constraints.pathsegment}";
Class>[] groups() default {};
Class extends Payload>[] payload() default {};
}