| java.lang.Object com.puppycrawl.tools.checkstyle.api.LocalizedMessage
LocalizedMessage | final public class LocalizedMessage implements Comparable(Code) | | Represents a message that can be localised. The translations come from
message.properties files. The underlying implementation uses
java.text.MessageFormat.
author: Oliver Burn author: lkuehne version: 1.0 |
Constructor Summary | |
public | LocalizedMessage(int aLineNo, int aColNo, String aBundle, String aKey, Object[] aArgs, SeverityLevel aSeverityLevel, String aModuleId, Class aSourceClass) Creates a new LocalizedMessage instance. | public | LocalizedMessage(int aLineNo, int aColNo, String aBundle, String aKey, Object[] aArgs, String aModuleId, Class aSourceClass) Creates a new LocalizedMessage instance. | public | LocalizedMessage(int aLineNo, String aBundle, String aKey, Object[] aArgs, SeverityLevel aSeverityLevel, String aModuleId, Class aSourceClass) Creates a new LocalizedMessage instance. | public | LocalizedMessage(int aLineNo, String aBundle, String aKey, Object[] aArgs, String aModuleId, Class aSourceClass) Creates a new LocalizedMessage instance. |
LocalizedMessage | public LocalizedMessage(int aLineNo, int aColNo, String aBundle, String aKey, Object[] aArgs, SeverityLevel aSeverityLevel, String aModuleId, Class aSourceClass)(Code) | | Creates a new LocalizedMessage instance.
Parameters: aLineNo - line number associated with the message Parameters: aColNo - column number associated with the message Parameters: aBundle - resource bundle name Parameters: aKey - the key to locate the translation Parameters: aArgs - arguments for the translation Parameters: aSeverityLevel - severity level for the message Parameters: aModuleId - the id of the module the message is associated with Parameters: aSourceClass - the Class that is the source of the message |
LocalizedMessage | public LocalizedMessage(int aLineNo, int aColNo, String aBundle, String aKey, Object[] aArgs, String aModuleId, Class aSourceClass)(Code) | | Creates a new LocalizedMessage instance.
Parameters: aLineNo - line number associated with the message Parameters: aColNo - column number associated with the message Parameters: aBundle - resource bundle name Parameters: aKey - the key to locate the translation Parameters: aArgs - arguments for the translation Parameters: aModuleId - the id of the module the message is associated with Parameters: aSourceClass - the Class that is the source of the message |
LocalizedMessage | public LocalizedMessage(int aLineNo, String aBundle, String aKey, Object[] aArgs, SeverityLevel aSeverityLevel, String aModuleId, Class aSourceClass)(Code) | | Creates a new LocalizedMessage instance.
Parameters: aLineNo - line number associated with the message Parameters: aBundle - resource bundle name Parameters: aKey - the key to locate the translation Parameters: aArgs - arguments for the translation Parameters: aSeverityLevel - severity level for the message Parameters: aModuleId - the id of the module the message is associated with Parameters: aSourceClass - the source class for the message |
LocalizedMessage | public LocalizedMessage(int aLineNo, String aBundle, String aKey, Object[] aArgs, String aModuleId, Class aSourceClass)(Code) | | Creates a new LocalizedMessage instance. The column number
defaults to 0.
Parameters: aLineNo - line number associated with the message Parameters: aBundle - name of a resource bundle that contains error messages Parameters: aKey - the key to locate the translation Parameters: aArgs - arguments for the translation Parameters: aModuleId - the id of the module the message is associated with Parameters: aSourceClass - the name of the source for the message |
getColumnNo | public int getColumnNo()(Code) | | the column number * |
getKey | public String getKey()(Code) | | Returns the message key to locate the translation, can also be used
in IDE plugins to map error messages to corrective actions.
the message key |
getLineNo | public int getLineNo()(Code) | | the line number * |
getMessage | public String getMessage()(Code) | | the translated message * |
getModuleId | public String getModuleId()(Code) | | the module identifier. |
getSourceName | public String getSourceName()(Code) | | the name of the source for this LocalizedMessage |
hashCode | public int hashCode()(Code) | | |
setLocale | public static void setLocale(Locale aLocale)(Code) | | Parameters: aLocale - the locale to use for localization * |
|
|