|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.FindBugsMessages
public final class FindBugsMessages
Parses the FindBugs pattern descriptions and provides access to these HTML messages.
| Method Summary | |
|---|---|
static FindBugsMessages |
getInstance()
Returns the singleton instance. |
String |
getMessage(String name,
Locale locale)
Returns a HTML description for the specified bug. |
String |
getShortMessage(String name,
Locale locale)
Returns a short description for the specified bug. |
void |
initialize()
Initializes the messages map. |
List<Pattern> |
parse(InputStream file)
Parses the FindBugs pattern description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static FindBugsMessages getInstance()
public void initialize()
throws IOException,
SAXException
SAXException - if we can't parse a file
IOException - if we can't read a file
public List<Pattern> parse(InputStream file)
throws IOException,
SAXException
file - XML file with the messages
SAXException - if we can't parse the file
IOException - if we can't read the file
public String getMessage(String name,
Locale locale)
name - name of the buglocale - the locale of the user
public String getShortMessage(String name,
Locale locale)
name - name of the buglocale - the locale of the user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||