org.thewonderlemming.c4plantuml.mojo

## Class MojoReporter

- java.lang.Object
- - org.thewonderlemming.c4plantuml.mojo.MojoReporter

- All Implemented Interfaces:
    org.thewonderlemming.c4plantuml.commons.Reporter

      public class MojoReporter
      extends Object
      implements org.thewonderlemming.c4plantuml.commons.Reporter

  A `Reporter` implementation that collects reported messages to enable their retrieval later.
  Author:
    thewonderlemming

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MojoReporter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `containsReports()` Checks whether or not the current `Reporter` instance contains messages.
    `List<String>` | `getReports()` Retrieves the reported messages.
    `void` | `report(String message)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MojoReporter

          public MojoReporter()

  - ### Method Detail

    - #### containsReports

          public boolean containsReports()

      Checks whether or not the current `Reporter` instance contains messages.
      Returns:
        `true` if there are messages, `false` else.

    - #### getReports

          public List<String> getReports()

      Retrieves the reported messages.

      The first message of the list will be the first message that was reported (FIFO).

      Returns:
        the reported messages list.

    - #### report

          public void report(String message)

      Specified by:
        `report` in interface `org.thewonderlemming.c4plantuml.commons.Reporter`

Copyright © 2020. All rights reserved.