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

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

The newest version!
/*
 * Copyright (C) 2011 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;


/**
 * A validator for Strings representing a crid URL.
 * 

* You may just as wel use */ @Target({METHOD, FIELD, PARAMETER, TYPE_USE}) @Retention(RUNTIME) @Constraint(validatedBy = CRIDValidator.class) @Documented public @interface CRID { String message() default "{nl.vpro.constraints.crid}"; Class[] groups() default {}; Class[] payload() default {}; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy