Package com.evolveum.midpoint.util
Class SingleLocalizableMessage
java.lang.Object
com.evolveum.midpoint.util.SingleLocalizableMessage
- All Implemented Interfaces:
LocalizableMessage
,ShortDumpable
,Serializable
This class is final and must remain so, as it's not cloneable.
- Author:
- semancik
- See Also:
-
Constructor Summary
ConstructorDescriptionSingleLocalizableMessage
(String key, Object[] args) SingleLocalizableMessage
(String key, Object[] args, LocalizableMessage fallbackLocalizableMessage) SingleLocalizableMessage
(String key, Object[] args, String fallbackMessage) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static SingleLocalizableMessage
Object[]
getArgs()
Message template arguments.Fallback localization message.Fallback message.getKey()
Message key.int
hashCode()
boolean
isEmpty()
void
Show the content of the object intended for diagnostics.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
-
Constructor Details
-
SingleLocalizableMessage
-
SingleLocalizableMessage
-
SingleLocalizableMessage
public SingleLocalizableMessage(String key, Object[] args, LocalizableMessage fallbackLocalizableMessage) -
SingleLocalizableMessage
-
-
Method Details
-
forEnum
-
getKey
Message key. This is the key in localization files that determine message or message template. -
getArgs
Message template arguments. -
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
Fallback localization message. This message is used in case that the message key cannot be found in the localization files. -
equals
-
hashCode
public int hashCode() -
toString
-
shortDump
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
-