hudson.plugins.violations
Class ViolationsReport.TypeReport

java.lang.Object
  extended by hudson.plugins.violations.ViolationsReport.TypeReport
Enclosing class:
ViolationsReport

public class ViolationsReport.TypeReport
extends Object

Report class for a particular type.


Constructor Summary
ViolationsReport.TypeReport(String type, String icon, int number)
          Create the report class for a type.
 
Method Summary
 String getIcon()
          Get the health icon to display.
 int getNumber()
          Get the number of violations.
 String getNumberString()
          Get the number of violations as a string.
 String getType()
          Get the violation type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViolationsReport.TypeReport

public ViolationsReport.TypeReport(String type,
                                   String icon,
                                   int number)
Create the report class for a type.

Parameters:
type - the violation type.
icon - the health icon to display.
number - the number of violations.
Method Detail

getType

public String getType()
Get the violation type.

Returns:
the violation type.

getIcon

public String getIcon()
Get the health icon to display.

Returns:
the health icon.

getNumber

public int getNumber()
Get the number of violations.

Returns:
the number.

getNumberString

public String getNumberString()
Get the number of violations as a string.

Returns:
the number if >= 0 othersise an error string.


Copyright © 2004-2012 Hudson. All Rights Reserved.