Package edu.umd.cs.findbugs
Class AddMessages
- java.lang.Object
-
- edu.umd.cs.findbugs.AddMessages
-
public class AddMessages extends java.lang.Object
Add human-readable messages to a dom4j tree containing FindBugs XML output. This transformation makes it easier to generate reports (such as HTML) from the XML.- See Also:
BugCollection
-
-
Field Summary
Fields Modifier and Type Field Description private BugCollection
bugCollection
private org.dom4j.Document
document
-
Constructor Summary
Constructors Constructor Description AddMessages(BugCollection bugCollection, org.dom4j.Document document)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addBugCategories(java.util.Set<java.lang.String> bugCategorySet)
Add BugCategory elements.private void
addBugCodes(java.util.Set<java.lang.String> bugCodeSet)
Add BugCode elements.private void
addBugPatterns(java.util.Set<java.lang.String> bugTypeSet)
void
execute()
Add messages to the dom4j tree.static void
main(java.lang.String[] args)
-
-
-
Field Detail
-
bugCollection
private final BugCollection bugCollection
-
document
private final org.dom4j.Document document
-
-
Constructor Detail
-
AddMessages
public AddMessages(BugCollection bugCollection, org.dom4j.Document document)
Constructor.- Parameters:
bugCollection
- the BugCollection the dom4j was generated fromdocument
- the dom4j tree
-
-
Method Detail
-
execute
public void execute()
Add messages to the dom4j tree.
-
addBugCategories
private void addBugCategories(java.util.Set<java.lang.String> bugCategorySet)
Add BugCategory elements.- Parameters:
bugCategorySet
- all bug categories referenced in the BugCollection
-
addBugCodes
private void addBugCodes(java.util.Set<java.lang.String> bugCodeSet)
Add BugCode elements.- Parameters:
bugCodeSet
- all bug codes (abbrevs) referenced in the BugCollection
-
addBugPatterns
private void addBugPatterns(java.util.Set<java.lang.String> bugTypeSet)
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-