com.atlassian.sal.core.message
Class DefaultMessage

java.lang.Object
  extended by com.atlassian.sal.core.message.DefaultMessage
All Implemented Interfaces:
Message, Serializable

public class DefaultMessage
extends Object
implements Message

See Also:
Serialized Form

Constructor Summary
DefaultMessage(String key, Serializable... arguments)
           
 
Method Summary
 Serializable[] getArguments()
           
 String getKey()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMessage

public DefaultMessage(String key,
                      Serializable... arguments)
Method Detail

getArguments

public Serializable[] getArguments()
Specified by:
getArguments in interface Message
Returns:
the arguments to insert into the resolved message

getKey

public String getKey()
Specified by:
getKey in interface Message
Returns:
the i18n message key

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Atlassian. All rights reserved.