hudson.plugins.violations.model
Class FileSummary

java.lang.Object
  extended by hudson.plugins.violations.model.FileSummary
All Implemented Interfaces:
Comparable<FileSummary>

public class FileSummary
extends Object
implements Comparable<FileSummary>

A set of violations from a full file model for a particular type.


Constructor Summary
FileSummary(FullFileModel fileModel, TreeSet violations)
          Constructor for FileSummary.
 
Method Summary
 int compareTo(FileSummary other)
          Implement a compare to based on the number of violations.
 FullFileModel getFileModel()
          Get the file model.
 TreeSet getViolations()
          Get the associated violations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSummary

public FileSummary(FullFileModel fileModel,
                   TreeSet violations)
Constructor for FileSummary.

Parameters:
fileModel - the file model
violations - the violation set to associate with the file model.
Method Detail

getFileModel

public FullFileModel getFileModel()
Get the file model.

Returns:
the full file model.

getViolations

public TreeSet getViolations()
Get the associated violations.

Returns:
the violations.

compareTo

public int compareTo(FileSummary other)
Implement a compare to based on the number of violations.

Specified by:
compareTo in interface Comparable<FileSummary>
Parameters:
other - the other summary to compare to.
Returns:
0 if same, 1 if less and -1 if greater (need most at top)


Copyright © 2004-2012 Hudson. All Rights Reserved.