@Override public void setFieldValue(String fieldName, String value) throws InvalidFieldValueException, InvalidFieldNameException { if (FIELD_ERROR_LIMIT.equals(fieldName)) { errorLimit = intValueFromString(value); } else if (FIELD_WARN_LIMIT.equals(fieldName)) { warningLimit = intValueFromString(value); } else { super.setFieldValue(fieldName, value); } }
/** * Clears out the data structures within the collector, returning it to a state similar to just * after construction. Thie method calls its <code>super</code> version to clear out the <code> * BaseChecker</code> structures as well. */ @Override public void clear() { super.clear(); typeTable.clear(); currentName = ""; currentFile = null; mainType = null; fileTable.clear(); importedItems.clear(); importList.clear(); Type.clearTypes(); }