public class I18N
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Locale |
defaultLocale |
static java.util.Comparator<java.lang.String> |
designationKeyComparator
a Comparator to compare user designation keys
|
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) |
java.lang.String |
getUserDesignation(java.lang.String key)
Get the localized user designation string.
|
java.lang.String |
getUserDesignationKey(int index) |
java.util.List<java.lang.String> |
getUserDesignationKeys()
Get a List containing all known user designation keys keys.
|
java.util.List<java.lang.String> |
getUserDesignationKeys(boolean sort)
Get a List containing all known user designation keys keys.
|
static I18N |
instance()
Get the single object instance.
|
public static final java.util.Comparator<java.lang.String> designationKeyComparator
public static final java.util.Locale defaultLocale
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 categorypublic java.lang.String getUserDesignation(java.lang.String key)
key
- the user designation keypublic java.util.List<java.lang.String> getUserDesignationKeys()
public java.util.List<java.lang.String> getUserDesignationKeys(boolean sort)
sort == true
then it will attempt to sort the List as
appropriate to show the user.public java.lang.String getUserDesignationKey(int index)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.