edu.umd.cs.findbugs
Class CountBugs

java.lang.Object
  extended by edu.umd.cs.findbugs.CountBugs

public class CountBugs
extends java.lang.Object

Count bugs in a result file by category.


Nested Class Summary
private static class CountBugs.CategoryKey
           
private static class CountBugs.CategoryKeyFactory
           
private static interface CountBugs.Key
           
private static interface CountBugs.KeyFactory
           
private static class CountBugs.KingdomAndPriorityKey
           
private static class CountBugs.KingdomAndPriorityKeyFactory
           
 
Field Summary
private  SortedBugCollection bugCollection
           
private  java.util.TreeMap<CountBugs.Key,java.lang.Integer> countMap
           
private  CountBugs.KeyFactory keyFactory
           
private  java.util.Set<CountBugs.Key> keySet
           
private static java.util.HashMap<java.lang.String,java.lang.String> kingdomToAbbrevMap
           
private  int minPriority
           
private static java.util.HashMap<java.lang.Integer,java.lang.String> priorityToAbbrevMap
           
private  Project project
           
 
Constructor Summary
CountBugs(SortedBugCollection bugCollection, Project project)
           
CountBugs(java.lang.String resultsFileName)
           
 
Method Summary
 void addKey(CountBugs.Key key)
           
 void diffCounts(CountBugs newer)
           
 void execute()
           
 SortedBugCollection getBugCollection()
           
 java.lang.Integer getCount(CountBugs.Key key)
           
 Project getProject()
           
 int getTotal()
           
static void main(java.lang.String[] argv)
           
 void printCounts(java.io.OutputStream out, boolean deltas)
           
 void setKeyFactory(java.lang.String keyMode)
           
 void setKeys(java.lang.String keyList)
           
private static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kingdomToAbbrevMap

private static final java.util.HashMap<java.lang.String,java.lang.String> kingdomToAbbrevMap

priorityToAbbrevMap

private static final java.util.HashMap<java.lang.Integer,java.lang.String> priorityToAbbrevMap

bugCollection

private SortedBugCollection bugCollection

project

private Project project

keyFactory

private CountBugs.KeyFactory keyFactory

keySet

private java.util.Set<CountBugs.Key> keySet

countMap

private java.util.TreeMap<CountBugs.Key,java.lang.Integer> countMap

minPriority

private int minPriority
Constructor Detail

CountBugs

public CountBugs(java.lang.String resultsFileName)
          throws java.io.IOException,
                 org.dom4j.DocumentException
Throws:
java.io.IOException
org.dom4j.DocumentException

CountBugs

public CountBugs(SortedBugCollection bugCollection,
                 Project project)
Method Detail

getBugCollection

public SortedBugCollection getBugCollection()

getProject

public Project getProject()

addKey

public void addKey(CountBugs.Key key)

setKeyFactory

public void setKeyFactory(java.lang.String keyMode)

setKeys

public void setKeys(java.lang.String keyList)

getCount

public java.lang.Integer getCount(CountBugs.Key key)

getTotal

public int getTotal()

execute

public void execute()

diffCounts

public void diffCounts(CountBugs newer)

printCounts

public void printCounts(java.io.OutputStream out,
                        boolean deltas)

usage

private static void usage()

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception