示例#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;
 }