public final class Problems
extends java.lang.Object
Constructor and Description |
---|
Problems() |
Modifier and Type | Method and Description |
---|---|
void |
add(Problem problem)
Add a problem
|
void |
add(java.lang.String problem)
Convenience method to add a problem with the specified message and
Severity.FATAL
|
void |
add(java.lang.String problem,
Severity severity)
Add a problem with the specified severity
|
Problem |
getLeadProblem()
Get the first problem of the highest severity
|
boolean |
hasFatal()
Determine if this set of problems includes any that are fatal.
|
boolean |
isEmpty()
Determine if this set of problems is empty
|
void |
putAll(Problems problems)
Dump all problems in another instance of Problems into this one.
|
java.lang.String |
toString() |
public final void add(java.lang.String problem)
problem
- public final void add(java.lang.String problem, Severity severity)
problem
- the messageseverity
- the severitypublic final void add(Problem problem)
problem
- The problempublic final void putAll(Problems problems)
problems
- The other problems.public final boolean isEmpty()
public final boolean hasFatal()
public final Problem getLeadProblem()
public java.lang.String toString()
toString
in class java.lang.Object