|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.util.ThresholdValidator
public class ThresholdValidator
Validates and converts threshold parameters. A threshold must be an integer value greater or equal 0 or the empty string.
| Constructor Summary | |
|---|---|
ThresholdValidator()
|
|
| Method Summary | |
|---|---|
hudson.util.FormValidation |
check(String value)
Validates the specified value. |
static int |
convert(String threshold)
Converts the provided string threshold into an integer value. |
static boolean |
isValid(String threshold)
Returns whether the provided threshold string parameter is a valid threshold number, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThresholdValidator()
| Method Detail |
|---|
public hudson.util.FormValidation check(String value)
throws hudson.util.FormValidation
FormValidation exception must be thrown.
check in interface Validatorvalue - the value to validate
FormValidation object
hudson.util.FormValidation - if the encoding is not validpublic static boolean isValid(String threshold)
threshold - string representation of the threshold value
true if the provided threshold string parameter is a
valid number >= 0public static int convert(String threshold)
threshold - string representation of the threshold value
IllegalArgumentException - if the provided string can't be converted to an integer value
greater or equal zero
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||