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