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 SummaryConstructorsConstructorDescriptionSingleLocalizableMessage(String key, Object[] args) SingleLocalizableMessage(String key, Object[] args, LocalizableMessage fallbackLocalizableMessage) SingleLocalizableMessage(String key, Object[] args, String fallbackMessage) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic SingleLocalizableMessageObject[]getArgs()Message template arguments.Fallback localization message.Fallback message.getKey()Message key.inthashCode()booleanisEmpty()voidShow the content of the object intended for diagnostics.toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.ShortDumpableshortDump, shortDumpLazily
- 
Constructor Details- 
SingleLocalizableMessage
- 
SingleLocalizableMessage
- 
SingleLocalizableMessagepublic SingleLocalizableMessage(String key, Object[] args, LocalizableMessage fallbackLocalizableMessage) 
- 
SingleLocalizableMessage
 
- 
- 
Method Details- 
forEnum
- 
getKeyMessage key. This is the key in localization files that determine message or message template.
- 
getArgsMessage template arguments.
- 
getFallbackMessageFallback message. This message is used in case that the message key cannot be found in the localization files.- Specified by:
- getFallbackMessagein interface- LocalizableMessage
 
- 
getFallbackLocalizableMessageFallback localization message. This message is used in case that the message key cannot be found in the localization files.
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
shortDumpDescription 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
 
 
-