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

org.unitils.objectvalidation.ObjectValidationRules Maven / Gradle / Ivy

There is a newer version: 1.1.9
Show newest version
package org.unitils.objectvalidation;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

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


/**
 * Annotation to be used in the context of the validation module.
 * Annotation should be put on an Object of type Object
 * 
 * @author Matthieu Mestrez
 * @since Oct 9, 2013
 */
@Retention(RUNTIME)
@Target(FIELD)
public @interface ObjectValidationRules {

    /**
     * Optional
     * @return additional rules (than the ones defined in the properties file)
     * that are going to be run on the class to validate.
     */
    Class[] additionalRules() default {};

    /**
     * Optional
     * @return replacement rules if there is a desire to not run the validation
     * rules globally defined in the properties file.
     */
    Class[] replacementRules() default {};
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy