public Set < ConstraintViolation > validate ( int record ) { Set < ConstraintViolation > errors = new LinkedHashSet < ConstraintViolation > ( ) ; for ( int ds = 0 ; ds < 250 ; ++ ds ) { try { DataSetInfo dataSetInfo = dsiFactory . create ( IIM . DS ( record , ds ) ) ; errors . addAll ( validate ( dataSetInfo ) ) ; } catch ( InvalidDataSetException ignored ) { // DataSetFactory doesn't know about this ds, so will skip it } } return errors ; }
Checks all data sets in a given record for constraint violations .