hudson.plugins.violations.model
Class BuildModel.FileCount

java.lang.Object
  extended by hudson.plugins.violations.model.BuildModel.FileCount
All Implemented Interfaces:
java.lang.Comparable<BuildModel.FileCount>
Enclosing class:
BuildModel

public static class BuildModel.FileCount
extends java.lang.Object
implements java.lang.Comparable<BuildModel.FileCount>

A class of file name to count mapping.


Constructor Summary
BuildModel.FileCount(java.lang.String name, int[] counts, FileModelProxy proxy)
          Create a FileCount object.
 
Method Summary
 int compareTo(BuildModel.FileCount other)
          Compare to another FileCount object.
 int getCount()
          Get the number of violations.
 FileModel getFileModel()
          Get the associated file model proxy.
 int getHigh()
          Get the number of high severity violations.
 int getLow()
          Get the number of low severity violations.
 int getMedium()
          Get the number of medium severity violations.
 java.lang.String getName()
          Get the name of the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildModel.FileCount

public BuildModel.FileCount(java.lang.String name,
                            int[] counts,
                            FileModelProxy proxy)
Create a FileCount object.

Parameters:
name - the name of the file.
counts - the numbers of violations (of a particular type) in the file.
proxy - the associated file proxy (used during rendering).
Method Detail

getName

public java.lang.String getName()
Get the name of the file.

Returns:
the filename.

getCount

public int getCount()
Get the number of violations.

Returns:
the number.

getHigh

public int getHigh()
Get the number of high severity violations.

Returns:
the number.

getMedium

public int getMedium()
Get the number of medium severity violations.

Returns:
the number.

getLow

public int getLow()
Get the number of low severity violations.

Returns:
the number.

getFileModel

public FileModel getFileModel()
Get the associated file model proxy.

Returns:
the file model proxy.

compareTo

public int compareTo(BuildModel.FileCount other)
Compare to another FileCount object.

Specified by:
compareTo in interface java.lang.Comparable<BuildModel.FileCount>
Parameters:
other - the other file count object.
Returns:
0 if they are the same, -1 if count is greater 1 if count is less, if counts are the same use the name for comparison.


Copyright © 2004-2012. All Rights Reserved.