/** * Checks to make sure all settings are kosher. In this case, it * means that the max depth is not lower than the min depth. */ public void verifySettings() { if (min < 0 && max < 0) { setError("You must set at least one of the min or the max levels."); } if (max < min && max > -1) { setError("The maximum depth is lower than the minimum."); } }
if (MIN_KEY.equalsIgnoreCase(paramname)) { try { setMin(Integer.parseInt(parameter.getValue())); } catch (NumberFormatException nfe1) { setError("Invalid minimum value " + parameter.getValue()); setMax(Integer.parseInt(parameter.getValue())); } catch (NumberFormatException nfe1) { setError("Invalid maximum value " + parameter.getValue()); setError("Invalid parameter " + paramname);