Package com.evolveum.midpoint.util
Class SingleLocalizableMessage
- java.lang.Object
-
- com.evolveum.midpoint.util.SingleLocalizableMessage
-
- All Implemented Interfaces:
LocalizableMessage
,ShortDumpable
,Serializable
public class SingleLocalizableMessage extends Object implements LocalizableMessage
This class is final and must remain so, as it's not cloneable.- Author:
- semancik
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SingleLocalizableMessage(String key, Object[] args, LocalizableMessage fallbackLocalizableMessage)
SingleLocalizableMessage(String key, Object[] args, String fallbackMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Object[]
getArgs()
Message template arguments.LocalizableMessage
getFallbackLocalizableMessage()
Fallback localization message.String
getFallbackMessage()
Fallback message.String
getKey()
Message key.int
hashCode()
boolean
isEmpty()
void
shortDump(StringBuilder sb)
Show the content of the object intended for diagnostics.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Method Detail
-
getKey
public String getKey()
Message key. This is the key in localization files that determine message or message template.
-
getArgs
public Object[] getArgs()
Message template arguments.
-
getFallbackMessage
public String getFallbackMessage()
Fallback message. This message is used in case that the message key cannot be found in the localization files.- Specified by:
getFallbackMessage
in interfaceLocalizableMessage
-
getFallbackLocalizableMessage
public LocalizableMessage getFallbackLocalizableMessage()
Fallback localization message. This message is used in case that the message key cannot be found in the localization files.
-
shortDump
public void shortDump(StringBuilder sb)
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceLocalizableMessage
-
-