Package com.atlassian.jira.util
Interface WarningCollection
- All Known Implementing Classes:
SimpleWarningCollection
public interface WarningCollection
A very simple interface to collect warnings. This is typically used in Services to validate actions or intentions.
- Since:
- v7.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWarning
(String warningMessage) Add a warning to the collectionvoid
addWarnings
(WarningCollection warningCollection) Add a collection of warningsRetrieve all the warningsboolean
-
Method Details
-
addWarning
Add a warning to the collection
- Parameters:
warningMessage
- to be added
-
addWarnings
Add a collection of warnings
- Parameters:
warningCollection
- a collection of warnings
-
getWarnings
Collection<String> getWarnings()Retrieve all the warnings
- Returns:
- all warnings
-
hasAnyWarnings
boolean hasAnyWarnings()- Returns:
- true when there is at least one warning
-