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 SummaryConstructors Constructor Description SingleLocalizableMessage(String key)SingleLocalizableMessage(String key, Object[] args)SingleLocalizableMessage(String key, Object[] args, LocalizableMessage fallbackLocalizableMessage)SingleLocalizableMessage(String key, Object[] args, String fallbackMessage)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static SingleLocalizableMessageforEnum(@NotNull Enum<?> value)Object[]getArgs()Message template arguments.LocalizableMessagegetFallbackLocalizableMessage()Fallback localization message.StringgetFallbackMessage()Fallback message.StringgetKey()Message key.inthashCode()booleanisEmpty()voidshortDump(StringBuilder sb)Show the content of the object intended for diagnostics.StringtoString()- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpableshortDump, shortDumpLazily
 
- 
 
- 
- 
- 
Constructor Detail- 
SingleLocalizableMessagepublic SingleLocalizableMessage(String key) 
 - 
SingleLocalizableMessagepublic SingleLocalizableMessage(String key, Object[] args, LocalizableMessage fallbackLocalizableMessage) 
 
- 
 - 
Method Detail- 
forEnum@Experimental public static SingleLocalizableMessage forEnum(@NotNull @NotNull Enum<?> value) 
 - 
getKeypublic String getKey() Message key. This is the key in localization files that determine message or message template.
 - 
getArgspublic Object[] getArgs() Message template arguments.
 - 
getFallbackMessagepublic String getFallbackMessage() Fallback message. This message is used in case that the message key cannot be found in the localization files.- Specified by:
- getFallbackMessagein interface- LocalizableMessage
 
 - 
getFallbackLocalizableMessagepublic LocalizableMessage getFallbackLocalizableMessage() Fallback localization message. This message is used in case that the message key cannot be found in the localization files.
 - 
shortDumppublic void shortDump(StringBuilder sb) Description copied from interface:ShortDumpableShow 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:
- shortDumpin interface- ShortDumpable
- Parameters:
- sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- LocalizableMessage
 
 
- 
 
-