|
||||||||||
| 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. |
java.lang.String |
getMessage(java.lang.String name,
java.util.Locale locale)
Returns a HTML description for the specified bug. |
java.lang.String |
getShortMessage(java.lang.String name,
java.util.Locale locale)
Returns a short description for the specified bug. |
void |
initialize()
Initializes the messages map. |
java.util.List<Pattern> |
parse(java.io.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 java.io.IOException,
org.xml.sax.SAXException
org.xml.sax.SAXException - if we can't parse a file
java.io.IOException - if we can't read a file
public java.util.List<Pattern> parse(java.io.InputStream file)
throws java.io.IOException,
org.xml.sax.SAXException
file - XML file with the messages
org.xml.sax.SAXException - if we can't parse the file
java.io.IOException - if we can't read the file
public java.lang.String getMessage(java.lang.String name,
java.util.Locale locale)
name - name of the buglocale - the locale of the user
public java.lang.String getShortMessage(java.lang.String name,
java.util.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 | |||||||||