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

nl.vpro.validation.PathSegment Maven / Gradle / Ivy

There is a newer version: 5.3.2
Show newest version
/*
 * 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[] payload() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy