public class Message extends java.lang.Object implements IMessage
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
description |
private Status |
status |
| Constructor and Description |
|---|
Message(java.lang.String description,
Status status)
Creates a message.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsError(java.util.List<Message> messages)
Utility method returning whether there is an error message in the given
messages. |
java.lang.String |
getDescription()
Returns the message description.
|
Status |
getStatus()
Returns the status of this message.
|
static java.lang.String |
toString(java.util.List<Message> messages,
Status filter)
Utility method returning a string representation of a given set of
messages. |
private java.lang.String description
private Status status
public Message(java.lang.String description,
Status status)
description - the message descriptionstatus - the status of the messagepublic java.lang.String getDescription()
getDescription in interface IMessagepublic Status getStatus()
public static boolean containsError(java.util.List<Message> messages)
messages.messages - the messages (may be null)true if there is an error, false elsepublic static java.lang.String toString(java.util.List<Message> messages, Status filter)
messages.messages - the messages (may be null)filter - just messages of the given status shall be returned (null for all)Copyright © 2009 - 2018 SSE. All Rights Reserved.