public interface Failures extends DocumentWorkerObject, Iterable<Failure>
| Modifier and Type | Method and Description |
|---|---|
void |
add(String failureId,
String failureMessage)
Adds the specified failure.
|
void |
add(String failureId,
String failureMessage,
Throwable cause)
Adds the specified failure.
|
void |
clear()
Removes all the failures in this collection.
|
Document |
getDocument()
Returns the document that this collection of failures is associated with.
|
boolean |
isChanged()
Returns true if this collection has been modified from its original state.
|
boolean |
isEmpty()
Returns true if there are no failures in this collection.
|
void |
reset()
Resets this collection of failures back to its original state, undoing any changes made to it using the add() or clear() methods.
|
int |
size()
Returns the number of failures in this collection.
|
Stream<Failure> |
stream()
Returns a sequential
Stream with this failures collection as its source. |
getApplicationforEach, iterator, spliteratorvoid add(String failureId, String failureMessage)
failureId - a non-localisable identifier related to the failurefailureMessage - a human readable message relating to the failurevoid add(String failureId, String failureMessage, Throwable cause)
failureId - a non-localisable identifier related to the failurefailureMessage - a human readable message relating to the failurecause - the cause of the failurevoid clear()
@Nonnull Document getDocument()
boolean isChanged()
boolean isEmpty()
void reset()
int size()
Copyright © 2016–2022 EntIT Software LLC, a Micro Focus company. All rights reserved.