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

colesico.framework.beanvalidation.Validate Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
package colesico.framework.beanvalidation;

import java.lang.annotation.*;

/**
 * Specifies that the bean property has to be validated.
 * 

* In this case, the code generator creates a stub of the validation builder method for this property * and generates a code for including the validation of this field in the validation process. */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD}) //TODO: support on getters @Inherited @Documented public @interface Validate { /** * Validation subject overriding. * By default subject is a name of validated property. */ String subject() default ""; /** * If true - validation method will be generated with the verifier signature. * Use this flag to implement a value direct check, rather than supply a validation command. */ boolean verifier() default false; /** * Name of the validation method in the validation builder. * By default validation method name is constructed as follow: 'validate'|'verify' + [validated property name] */ String methodName() default ""; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy