|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.violations.model.BuildModel
public class BuildModel
A model of the violations of the build used during rendering time.
| Nested Class Summary | |
|---|---|
static class |
BuildModel.FileCount
A class of file name to count mapping. |
static class |
BuildModel.TypeCount
A class used in displaying number of violations and files in violation. |
| Constructor Summary | |
|---|---|
BuildModel(File xmlFile)
Create a model of the violations. |
|
| Method Summary | |
|---|---|
void |
addFileCount(String type,
String name,
int[] count)
Add a file count. |
SortedSet<BuildModel.FileCount> |
getFileCounts(String type)
get a set of file counts for a type. |
Map<String,FileModelProxy> |
getFileModelMap()
Get the file model map. |
Map<String,BuildModel.TypeCount> |
getTypeCountMap()
Get the type count map. |
Collection<BuildModel.TypeCount> |
getTypeCounts()
Get the collection of type counts. |
SortedMap<String,SortedSet<BuildModel.FileCount>> |
getTypeMap()
Get the map of type to file counts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuildModel(File xmlFile)
xmlFile - the file used to create this (used to
get the directory for parsing the per file
xml files on demand).| Method Detail |
|---|
public SortedMap<String,SortedSet<BuildModel.FileCount>> getTypeMap()
public Map<String,FileModelProxy> getFileModelMap()
public Collection<BuildModel.TypeCount> getTypeCounts()
public Map<String,BuildModel.TypeCount> getTypeCountMap()
public SortedSet<BuildModel.FileCount> getFileCounts(String type)
type - the type to ge for.
public void addFileCount(String type,
String name,
int[] count)
type - the type.name - the filename.count - the number of violations.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||