|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hudson.plugins.violations.TypeConfig
public class TypeConfig
This contains the configuration of a particular violation type.
Field Summary | |
---|---|
static int |
DEFAULT_FAIL
Default fail |
static int |
DEFAULT_MAX
Default max |
static int |
DEFAULT_MIN
Default min |
static int |
DEFAULT_UNSTABLE
Default unstable |
static int |
UNSTABLE_BLANK
UNSTABLE BLANK |
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. |
java.lang.Integer |
getFail()
Get the fail value |
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. |
java.lang.Integer |
getUnstable()
Get the unstable value |
boolean |
isUsePattern()
Get the usePattern value. |
void |
setFail(java.lang.Integer fail)
Set the fail value. |
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. |
void |
setUnstable(java.lang.Integer unstable)
Set the unstable value. |
void |
setUsePattern(boolean usePattern)
Set the usePattern value |
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
public static final int DEFAULT_UNSTABLE
public static final int UNSTABLE_BLANK
public static final int DEFAULT_FAIL
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.Integer getUnstable()
public void setUnstable(java.lang.Integer unstable)
unstable
- the value to use.public void setFail(java.lang.Integer fail)
fail
- the value to use.public java.lang.Integer getFail()
public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
pattern
- the fileset pattern.public void setUsePattern(boolean usePattern)
usePattern
- the value to use.public boolean isUsePattern()
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 |