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 Details

    • addWarning

      void addWarning(String warningMessage)

      Add a warning to the collection

      Parameters:
      warningMessage - to be added
    • addWarnings

      void addWarnings(WarningCollection warningCollection)

      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