com.atlassian.sal.api.message
Interface MessageCollection

All Known Implementing Classes:
DefaultMessageCollection

public interface MessageCollection

A collection of messages that haven't been resolved

Since:
2.0

Method Summary
 void addAll(List<Message> messages)
          Adds all messages to the collection
 void addMessage(Message message)
          Adds a message to the collection
 void addMessage(String key, Serializable... arguments)
          Adds a message to the collection
 List<Message> getMessages()
           
 boolean isEmpty()
           
 

Method Detail

addMessage

void addMessage(String key,
                Serializable... arguments)
Adds a message to the collection

Parameters:
key - The i18n key
arguments - The arguments to insert into the resolved message

addMessage

void addMessage(Message message)
Adds a message to the collection

Parameters:
message - the message

addAll

void addAll(List<Message> messages)
Adds all messages to the collection

Parameters:
messages - The list of messages

isEmpty

boolean isEmpty()
Returns:
True if the collection is empty

getMessages

List<Message> getMessages()
Returns:
the list of messages


Copyright © 2011 Atlassian. All Rights Reserved.