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

javax.validation.Valid Maven / Gradle / Ivy

There is a newer version: 3.3.8
Show newest version
/*
 * Bean Validation API
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or .
 */
package javax.validation;

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;
import static java.lang.annotation.ElementType.TYPE_USE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * Marks a property, method parameter or method return type for validation cascading.
 * 

* Constraints defined on the object and its properties are be validated when the * property, method parameter or method return type is validated. *

* This behavior is applied recursively. * * @author Emmanuel Bernard * @author Hardy Ferentschik */ @Target({ METHOD, FIELD, CONSTRUCTOR, PARAMETER, TYPE_USE }) @Retention(RUNTIME) @Documented public @interface Valid { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy