Class AddMessages

java.lang.Object
edu.umd.cs.findbugs.AddMessages

public class AddMessages extends 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:
  • Field Details

    • bugCollection

      private final BugCollection bugCollection
    • document

      private final org.dom4j.Document document
  • Constructor Details

    • AddMessages

      public AddMessages(BugCollection bugCollection, org.dom4j.Document document)
      Constructor.
      Parameters:
      bugCollection - the BugCollection the dom4j was generated from
      document - the dom4j tree
  • Method Details

    • execute

      public void execute()
      Add messages to the dom4j tree.
    • addBugCategories

      private void addBugCategories(Set<String> bugCategorySet)
      Add BugCategory elements.
      Parameters:
      bugCategorySet - all bug categories referenced in the BugCollection
    • addBugCodes

      private void addBugCodes(Set<String> bugCodeSet)
      Add BugCode elements.
      Parameters:
      bugCodeSet - all bug codes (abbrevs) referenced in the BugCollection
    • addBugPatterns

      private void addBugPatterns(Set<String> bugTypeSet)
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception