public class I18N
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Locale |
defaultLocale |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAnnotationDescription(java.lang.String key)
Get an annotation description string.
|
java.lang.String |
getBugCategoryDescription(java.lang.String category)
Get the description of a bug category.
|
java.lang.String |
getBugTypeDescription(java.lang.String shortBugType)
Get a description for given "bug type".
|
java.lang.String |
getDetailHTML(java.lang.String key)
Get an HTML document describing the bug pattern for given key in detail.
|
java.lang.String |
getMessage(java.lang.String key)
Deprecated.
|
java.lang.String |
getShortMessage(java.lang.String key)
Get a short message string.
|
java.lang.String |
getShortMessageWithoutCode(java.lang.String key) |
static I18N |
instance()
Get the single object instance.
|
public static I18N instance()
@Deprecated @Nonnull public java.lang.String getMessage(java.lang.String key)
key
- which message to retrieve@Nonnull public java.lang.String getShortMessage(java.lang.String key)
key
- which short message to retrieve@Nonnull public java.lang.String getShortMessageWithoutCode(java.lang.String key)
@Nonnull public java.lang.String getDetailHTML(java.lang.String key)
key
- which HTML details for retrievepublic java.lang.String getAnnotationDescription(java.lang.String key)
key
- the annotation description to retrieve@Nonnull public java.lang.String getBugTypeDescription(java.lang.String shortBugType)
shortBugType
- the short bug type codepublic java.lang.String getBugCategoryDescription(java.lang.String category)
category
- the categorySpotBugs is licensed under the LGPL.