| 
Algernon Software | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.algernon.util.ErrorSet
This class collects errors during compilation and processing. If its size is 0 after an operation, there were no errors. Otherwise, it contains Strings that can be displayed to the user.
| Field Summary | |
protected  Collection | 
m_errors
 | 
protected  Collection | 
m_warnings
 | 
| Constructor Summary | |
ErrorSet()
 | 
|
| Method Summary | |
 void | 
addError(String newError)
Adds a new warning to the error set.  | 
 void | 
addWarning(String newWarning)
Adds a new warning to the error set.  | 
 void | 
clear()
 | 
 void | 
clearErrors()
 | 
 void | 
clearWarnings()
 | 
 Collection | 
getErrors()
Returns a collection of errors, which are Strings.  | 
 Collection | 
getWarnings()
Returns a collection of warnings, which are Strings.  | 
 int | 
size()
Returns the number of errors plus the number of warnings.  | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected Collection m_errors
protected Collection m_warnings
| Constructor Detail | 
public ErrorSet()
| Method Detail | 
public String toString()
public int size()
public Collection getErrors()
public Collection getWarnings()
public void clear()
public void clearErrors()
public void clearWarnings()
public void addWarning(String newWarning)
public void addError(String newError)
  | 
Algernon Software | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||