| net.sf.oval.constraint.Assert
Assert | public @interface Assert(Code) | | Check if evaluating the expression in the specified expression language returns true.
author: Sebastian Thomschke |
errorCode | String errorCode(Code) | | failure code passed to the ConstraintViolation object
|
expr | String expr(Code) | | formula in the given expression language describing the constraint. the formula must return true if the constraint is satisfied.
available variables are:
_this -> the validated bean
_value -> the value to validate (e.g. the field value, parameter value, method return value, or the validated bean for object level constraints)
|
lang | String lang(Code) | | the expression language that is used, e.g. "bsh" / "beanshell", "groovy", or "js" / "javascript".
|
profiles | String[] profiles(Code) | | The associated validation profiles.
|
severity | int severity(Code) | | severity passed to the ConstraintViolation object
|
|
|