com.puppycrawl.tools.checkstyle.api
public final class LocalizedMessage extends Object implements Comparable
Version: 1.0
Constructor Summary | |
---|---|
LocalizedMessage(int aLineNo, int aColNo, String aBundle, String aKey, Object[] aArgs, SeverityLevel aSeverityLevel, Class aSourceClass)
Creates a new LocalizedMessage instance.
| |
LocalizedMessage(int aLineNo, int aColNo, String aBundle, String aKey, Object[] aArgs, Class aSourceClass)
Creates a new LocalizedMessage instance.
| |
LocalizedMessage(int aLineNo, String aBundle, String aKey, Object[] aArgs, SeverityLevel aSeverityLevel, Class aSourceClass)
Creates a new LocalizedMessage instance.
| |
LocalizedMessage(int aLineNo, String aBundle, String aKey, Object[] aArgs, Class aSourceClass)
Creates a new LocalizedMessage instance. |
Method Summary | |
---|---|
int | compareTo(Object aOther) {@inheritDoc} |
boolean | equals(Object aObject) {@inheritDoc} |
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() |
SeverityLevel | getSeverityLevel() |
String | getSourceName() |
int | hashCode()
{@inheritDoc} |
static void | setLocale(Locale aLocale) |
LocalizedMessage
instance.
Parameters: aLineNo line number associated with the message aColNo column number associated with the message aBundle resource bundle name aKey the key to locate the translation aArgs arguments for the translation aSeverityLevel severity level for the message aSourceClass the Class that is the source of the message
LocalizedMessage
instance.
Parameters: aLineNo line number associated with the message aColNo column number associated with the message aBundle resource bundle name aKey the key to locate the translation aArgs arguments for the translation aSourceClass the Class that is the source of the message
LocalizedMessage
instance.
Parameters: aLineNo line number associated with the message aBundle resource bundle name aKey the key to locate the translation aArgs arguments for the translation aSeverityLevel severity level for the message aSourceClass the source class for the message
LocalizedMessage
instance. The column number
defaults to 0.
Parameters: aLineNo line number associated with the message aBundle name of a resource bundle that contains error messages aKey the key to locate the translation aArgs arguments for the translation aSourceClass the name of the source for the message
Returns: the column number *
Returns: the message key
Returns: the line number *
Returns: the translated message *
Returns: the severity level *
Returns: the name of the source for this LocalizedMessage
Parameters: aLocale the locale to use for localization *