hudson.plugins.violations
Class ViolationsReport.TypeReport

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

public class ViolationsReport.TypeReport
extends java.lang.Object

Report class for a particular type.


Constructor Summary
ViolationsReport.TypeReport(java.lang.String type, java.lang.String icon, int number)
          Create the report class for a type.
 
Method Summary
 java.lang.String getIcon()
          Get the health icon to display.
 int getNumber()
          Get the number of violations.
 java.lang.String getNumberString()
          Get the number of violations as a string.
 java.lang.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(java.lang.String type,
                                   java.lang.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 java.lang.String getType()
Get the violation type.

Returns:
the violation type.

getIcon

public java.lang.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 java.lang.String getNumberString()
Get the number of violations as a string.

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


Copyright © 2004-2012. All Rights Reserved.