public interface

WarningCollection

com.atlassian.jira.util.WarningCollection
Known Indirect Subclasses

Class Overview

A very simple interface to collect warnings. This is typically used in Services to validate actions or intentions.

Summary

Public Methods
void addWarning(String warningMessage)

Add a warning to the collection

Collection<String> getWarnings()

Retrieve all the warnings

boolean hasAnyWarnings()

Public Methods

public void addWarning (String warningMessage)

Add a warning to the collection

Parameters
warningMessage to be added

public Collection<String> getWarnings ()

Retrieve all the warnings

Returns
  • all warnings

public boolean hasAnyWarnings ()

Returns
  • true when there is at least one warning