|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.violations.TypeConfig
public class TypeConfig
This contains the configuration of a particular violation type.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX
Default max |
static int |
DEFAULT_MIN
Default min |
| Constructor Summary | |
|---|---|
TypeConfig(java.lang.String type)
Construct a type config. |
|
| Method Summary | |
|---|---|
TypeConfig |
clone()
Clone the type config. |
void |
fix()
Ensure that max is > min and that both are positive. |
int |
getHealthFor(int violations)
A utility method to calculate the health percentage. |
int |
getMax()
Get the max (stormy). |
int |
getMin()
Get the min (sunny). |
java.lang.String |
getName()
Return the type. |
java.lang.String |
getPattern()
Get the fileset pattern. |
java.lang.String |
getType()
Return the type. |
void |
setMax(int max)
Set the max (stormy). |
void |
setMin(int min)
Set the min (sunny). |
void |
setPattern(java.lang.String pattern)
Set the fileset pattern. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MIN
public static final int DEFAULT_MAX
| Constructor Detail |
|---|
public TypeConfig(java.lang.String type)
type - the type this config is for.| Method Detail |
|---|
public java.lang.String getType()
public java.lang.String getName()
public int getMax()
public void setMax(int max)
max - the lower limit for stormypublic int getMin()
public void setMin(int min)
min - the upper limit for sunny.public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
pattern - the fileset pattern.public void fix()
public int getHealthFor(int violations)
violations - the number of violations.
public TypeConfig clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||