hudson.plugins.violations.model
Class FullBuildModel

java.lang.Object
  extended by hudson.plugins.violations.model.FullBuildModel

public class FullBuildModel
extends java.lang.Object

Class containing all the violations for a build. built up during parsing of the violation xml files.


Constructor Summary
FullBuildModel()
           
 
Method Summary
 void addType(java.lang.String type)
          Add in a type.
 void cleanup()
          Called at the end of a build.
 int getCountNumber(java.lang.String type)
          For a particular type get the total number of violations.
 FullFileModel getFileModel(java.lang.String displayName)
          Get a full file model for a particular file name.
 java.util.Map<java.lang.String,FullFileModel> getFileModelMap()
          get the map of filename to file model.
 java.util.SortedMap<java.lang.String,java.util.SortedSet<FileSummary>> getTypeMap()
          get the map of type to file summaries.
 java.util.SortedSet<FileSummary> getTypeSummary(java.lang.String type)
          Get the set of file summaries for a particular type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullBuildModel

public FullBuildModel()
Method Detail

getTypeMap

public java.util.SortedMap<java.lang.String,java.util.SortedSet<FileSummary>> getTypeMap()
get the map of type to file summaries.

Returns:
the map of type to file summaries.

getFileModelMap

public java.util.Map<java.lang.String,FullFileModel> getFileModelMap()
get the map of filename to file model.

Returns:
the map of filename to full file models.

getCountNumber

public int getCountNumber(java.lang.String type)
For a particular type get the total number of violations.

Parameters:
type - the violations type.
Returns:
the total number.

addType

public void addType(java.lang.String type)
Add in a type. Called at build time to ensure enties.

Parameters:
type - the violation type to add.

getTypeSummary

public java.util.SortedSet<FileSummary> getTypeSummary(java.lang.String type)
Get the set of file summaries for a particular type.

Parameters:
type - the type to get the summaries for.
Returns:
the file summary set.

getFileModel

public FullFileModel getFileModel(java.lang.String displayName)
Get a full file model for a particular file name.

Parameters:
displayName - the name to use to refer to the file.
Returns:
the model for the file.

cleanup

public void cleanup()
Called at the end of a build. This sets up file summary records.



Copyright © 2004-2012. All Rights Reserved.