edu.umd.cs.findbugs
public class I18N extends Object
Field Summary | |
---|---|
static Locale | defaultLocale |
static Comparator<String> | designationKeyComparator a Comparator to compare user designation keys |
Method Summary | |
---|---|
Iterator<BugPattern> | bugPatternIterator()
Get an Iterator over all registered bug patterns. |
String | getAnnotationDescription(String key)
Get an annotation description string.
|
Collection<String> | getBugCategories()
Get a Collection containing all known bug category keys.
|
BugCategory | getBugCategory(String category)
Get the BugCategory object for a category key.
|
String | getBugCategoryDescription(String category)
Get the description of a bug category.
|
Collection<BugCategory> | getBugCategoryObjects() |
String | getUserDesignation(String key)
Get the localized user designation string.
|
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. |
boolean | registerBugCategory(String category, BugCategory bc)
Set the metadata for a bug category.
|
void | registerBugCode(BugCode bugCode)
Register a BugCode.
|
void | registerBugPattern(BugPattern bugPattern)
Register a BugPattern.
|
Parameters: key the annotation description to retrieve
Returns: Collection of bug category keys.
Parameters: category the category key
Returns: the BugCategory object (may be null)
Parameters: category the category
Returns: the description of the category
Parameters: key the user designation key
Returns: the localized designation string
Returns: List of user designation keys
sort == true
then it will attempt to sort
the List as appropriate to show the user.
Returns: List of user designation keys
Parameters: category the category key bc the BugCategory object holding the metadata for the category
Returns: false if the category's metadata has already been set, true otherwise
Parameters: bugCode the BugCode
Parameters: bugPattern the BugPattern