Hi all,
dispite what specification say, it would be usefull to have a reference to the 'rootBean' object in case of a constraint applied to a field.
I used Oval (
http://oval.sourceforge.net) as a framework for validation and I founded wery usefull to have a reference to the 'validatedObject' from inside, as Oval call it, my 'Check'.
Code:
public interface Check extends Serializable {
...
boolean isSatisfied(Object validatedObject,
Object valueToValidate,
OValContext context,
Validator validator)
throws OValException
...
}
Probably I am missing something.
Any suggestion?
Thanks.