public final class LocalizedMessage extends Object implements Comparable
Constructor and Description |
---|
LocalizedMessage(int aLineNo,
int aColNo,
String aBundle,
String aKey,
Object[] aArgs,
SeverityLevel aSeverityLevel,
String aModuleId,
Class aSourceClass)
Creates a new
LocalizedMessage instance. |
LocalizedMessage(int aLineNo,
int aColNo,
String aBundle,
String aKey,
Object[] aArgs,
String aModuleId,
Class aSourceClass)
Creates a new
LocalizedMessage instance. |
LocalizedMessage(int aLineNo,
String aBundle,
String aKey,
Object[] aArgs,
SeverityLevel aSeverityLevel,
String aModuleId,
Class aSourceClass)
Creates a new
LocalizedMessage instance. |
LocalizedMessage(int aLineNo,
String aBundle,
String aKey,
Object[] aArgs,
String aModuleId,
Class aSourceClass)
Creates a new
LocalizedMessage instance. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object aOther) |
boolean |
equals(Object aObject) |
int |
getColumnNo() |
String |
getKey()
Returns the message key to locate the translation, can also be used
in IDE plugins to map error messages to corrective actions.
|
int |
getLineNo() |
String |
getMessage() |
String |
getModuleId() |
SeverityLevel |
getSeverityLevel() |
String |
getSourceName() |
int |
hashCode() |
static void |
setLocale(Locale aLocale) |
public LocalizedMessage(int aLineNo, int aColNo, String aBundle, String aKey, Object[] aArgs, SeverityLevel aSeverityLevel, String aModuleId, Class aSourceClass)
LocalizedMessage
instance.aLineNo
- line number associated with the messageaColNo
- column number associated with the messageaBundle
- resource bundle nameaKey
- the key to locate the translationaArgs
- arguments for the translationaSeverityLevel
- severity level for the messageaModuleId
- the id of the module the message is associated withaSourceClass
- the Class that is the source of the messagepublic LocalizedMessage(int aLineNo, int aColNo, String aBundle, String aKey, Object[] aArgs, String aModuleId, Class aSourceClass)
LocalizedMessage
instance.aLineNo
- line number associated with the messageaColNo
- column number associated with the messageaBundle
- resource bundle nameaKey
- the key to locate the translationaArgs
- arguments for the translationaModuleId
- the id of the module the message is associated withaSourceClass
- the Class that is the source of the messagepublic LocalizedMessage(int aLineNo, String aBundle, String aKey, Object[] aArgs, SeverityLevel aSeverityLevel, String aModuleId, Class aSourceClass)
LocalizedMessage
instance.aLineNo
- line number associated with the messageaBundle
- resource bundle nameaKey
- the key to locate the translationaArgs
- arguments for the translationaSeverityLevel
- severity level for the messageaModuleId
- the id of the module the message is associated withaSourceClass
- the source class for the messagepublic LocalizedMessage(int aLineNo, String aBundle, String aKey, Object[] aArgs, String aModuleId, Class aSourceClass)
LocalizedMessage
instance. The column number
defaults to 0.aLineNo
- line number associated with the messageaBundle
- name of a resource bundle that contains error messagesaKey
- the key to locate the translationaArgs
- arguments for the translationaModuleId
- the id of the module the message is associated withaSourceClass
- the name of the source for the messagepublic String getMessage()
public int getLineNo()
public int getColumnNo()
public SeverityLevel getSeverityLevel()
public String getModuleId()
public String getKey()
public String getSourceName()
public static void setLocale(Locale aLocale)
aLocale
- the locale to use for localizationpublic int compareTo(Object aOther)
compareTo
in interface Comparable