@Override public void info(ValidationException exception) { if (isSeverityAtLeast(Severity.INFO)) exceptions.add(exception); }
private boolean isSeverityAtLeast(Severity s) { return s.compareTo(getMinimumSeverityToCollect()) >= 0; }
private boolean isSeverityAtLeast(Severity s) { return s.compareTo(getMinimumSeverityToCollect()) >= 0; }
@Override public void error(ValidationException exception) { if (isSeverityAtLeast(Severity.ERROR)) exceptions.add(exception); }
@Override public void error(ValidationException exception) { if (isSeverityAtLeast(Severity.ERROR)) exceptions.add(exception); }
@Override public void warning(ValidationException exception) { if (isSeverityAtLeast(Severity.WARNING)) exceptions.add(exception); }
@Override public void warning(ValidationException exception) { if (isSeverityAtLeast(Severity.WARNING)) exceptions.add(exception); }
@Override public void info(ValidationException exception) { if (isSeverityAtLeast(Severity.INFO)) exceptions.add(exception); }