예제 #1
0
 public int warnings() {
   int warnings = 0;
   if (validationErrorResults != null) {
     for (ValidationResult validationError : validationErrorResults) {
       if (validationError.getError().isOnlyWarn()) {
         warnings++;
       }
     }
   }
   return warnings;
 }
예제 #2
0
 public int errors() {
   int errors = 0;
   if (validationErrorResults != null) {
     for (ValidationResult validationError : validationErrorResults) {
       if (!validationError.getError().isOnlyWarn()) {
         errors++;
       }
     }
   }
   return errors;
 }