| Modifier and Type | Method and Description |
|---|---|
static SimpleMessage |
copyOf(Message message) |
java.lang.Object[] |
getArgs() |
java.lang.String |
getKey() |
java.lang.String |
getTranslation() |
static SimpleMessage |
withKeyAndArgs(java.lang.String key,
java.lang.Object... args)
Creates a new SimpleMessage with the given key and arguments.
|
static SimpleMessage |
withTranslation(java.lang.String translation)
Used when a message only has a translated string at creation time, usually in English.
|
public static SimpleMessage withKeyAndArgs(java.lang.String key, java.lang.Object... args)
public static SimpleMessage withTranslation(java.lang.String translation)
Use of this method is discouraged - try to use withKeyAndArgs(String, Object...)
whenever possible.
public java.lang.String getKey()
public java.lang.Object[] getArgs()
public java.lang.String getTranslation()
getTranslation in interface Messagepublic static SimpleMessage copyOf(Message message)
Copyright © 2003-2014 Atlassian. All Rights Reserved.