Package com.atlassian.sal.api.message
Interface MessageCollection
public interface MessageCollection
A collection of messages that haven't been resolved
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds all messages to the collectionvoidaddMessage(Message message) Adds a message to the collectionvoidaddMessage(String key, Serializable... arguments) Adds a message to the collectionbooleanisEmpty()
-
Method Details
-
addMessage
Adds a message to the collection- Parameters:
key- The i18n keyarguments- The arguments to insert into the resolved message
-
addMessage
Adds a message to the collection- Parameters:
message- the message
-
addAll
Adds all messages to the collection- Parameters:
messages- The list of messages
-
isEmpty
boolean isEmpty()- Returns:
- True if the collection is empty
-
getMessages
- Returns:
- the list of messages
-