public static < T extends MPBase > boolean validate ( T objectToValidate ) throws MPValidationException { Collection < ValidationViolation > colViolations = validate ( new Vector < ValidationViolation > ( ) , objectToValidate ) ; if ( ! colViolations . isEmpty ( ) ) { throw new MPValidationException ( colViolations ) ; } return true ; }
Evaluates every field of an obj using Validation annotations