Class MessageStatus

java.lang.Object
eu.europa.esig.dss.alert.status.MessageStatus
All Implemented Interfaces:
Status
Direct Known Subclasses:
ObjectStatus

public class MessageStatus extends Object implements Status
Contains message describing the occurred event
  • Constructor Details

    • MessageStatus

      public MessageStatus()
      Default constructor initializing a null message
  • Method Details

    • getMessage

      public String getMessage()
      Description copied from interface: Status
      Returns the error message describing the occurred event
      Specified by:
      getMessage in interface Status
      Returns:
      String
    • setMessage

      public void setMessage(String message)
      Sets the message describing the occurred event
      Parameters:
      message - String
    • getRelatedObjectIds

      public Collection<String> getRelatedObjectIds()
      Description copied from interface: Status
      Returns a collection of object identifiers associated with the event
      Specified by:
      getRelatedObjectIds in interface Status
      Returns:
      a collection of String object ids associated with the event
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: Status
      Returns whether the object is not filled (all values are null)
      Specified by:
      isEmpty in interface Status
      Returns:
      TRUE if the Status is empty (underlying even did not occur), FALSE otherwise (event occurred)
    • getErrorString

      public String getErrorString()
      Description copied from interface: Status
      This method returns a complete error message computed from the main message and subMessages from the different objects
      Specified by:
      getErrorString in interface Status
      Returns:
      String
    • toString

      public String toString()
      Overrides:
      toString in class Object