com.atlassian.sal.api.message
Interface MessageCollection


public interface MessageCollection

A collection of messages that haven't been resolved

Since:
2.0

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

Method Detail

addMessage

void addMessage(java.lang.String key,
                java.io.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(java.util.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

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


Copyright © 2009 Atlassian. All Rights Reserved.