|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.api.model.messages.SimpleMessage
@ExperimentalApi public class SimpleMessage
Simple immutable implementation of Message.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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()
getKey in interface Messagepublic java.lang.Object[] getArgs()
getArgs in interface Messagepublic java.lang.String getTranslation()
getTranslation in interface Messagepublic static SimpleMessage copyOf(Message message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||