public interface IFailureList extends java.util.List<Failure>
Modifier and Type | Method and Description |
---|---|
void |
fail(Failure item)
Adds a new failure object to the list
|
void |
fail(java.lang.String key,
java.lang.String text)
Adds a new failure object to the list
|
void |
failIf(boolean condition,
java.lang.String key,
java.lang.String text)
Adds a new failure object to the list if condition is true
|
Severity |
getSeverity()
The highest severity in the list of failures
|
boolean |
isEmpty()
True if list is empty
|
void |
setSeverity(Severity value)
The highest severity in the list of failures
|
Severity getSeverity()
void setSeverity(Severity value)
value
- severityboolean isEmpty()
void fail(Failure item)
item
- failure objectvoid fail(java.lang.String key, java.lang.String text)
key
- key of the failuretext
- text of the failurevoid failIf(boolean condition, java.lang.String key, java.lang.String text)
condition
- conditionkey
- key of the failuretext
- text of the failure