public class I18N extends Object
Modifier and Type | Field and Description |
---|---|
static Locale |
defaultLocale |
static Comparator<String> |
designationKeyComparator
a Comparator to compare user designation keys
|
Modifier and Type | Method and Description |
---|---|
String |
getAnnotationDescription(String key)
Get an annotation description string.
|
String |
getBugCategoryDescription(String category)
Get the description of a bug category.
|
String |
getBugTypeDescription(String shortBugType)
Get a description for given "bug type".
|
String |
getDetailHTML(String key)
Get an HTML document describing the bug pattern for given key in detail.
|
String |
getMessage(String key)
Deprecated.
|
String |
getShortMessage(String key)
Get a short message string.
|
String |
getShortMessageWithoutCode(String key) |
String |
getUserDesignation(String key)
Get the localized user designation string.
|
String |
getUserDesignationKey(int index) |
List<String> |
getUserDesignationKeys()
Get a List containing all known user designation keys keys.
|
List<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 Comparator<String> designationKeyComparator
public static final Locale defaultLocale
public static I18N instance()
@Deprecated @Nonnull public String getMessage(String key)
key
- which message to retrieve@Nonnull public String getShortMessage(String key)
key
- which short message to retrieve@Nonnull public String getDetailHTML(String key)
key
- which HTML details for retrievepublic String getAnnotationDescription(String key)
key
- the annotation description to retrieve@Nonnull public String getBugTypeDescription(String shortBugType)
shortBugType
- the short bug type codepublic String getBugCategoryDescription(String category)
category
- the categorypublic String getUserDesignation(String key)
key
- the user designation keypublic List<String> getUserDesignationKeys()
public List<String> getUserDesignationKeys(boolean sort)
sort == true
then it will attempt to sort the List as
appropriate to show the user.public String getUserDesignationKey(int index)
Copyright © 2003–2015. All rights reserved.