Class FormValidationValue<T>
- java.lang.Object
-
- com.oracle.cloud.baremetal.jenkins.FormValidationValue<T>
-
public class FormValidationValue<T> extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> FormValidationValue<T>
error(FormValidation formValidation)
static <T> FormValidationValue<T>
error(FormValidation formValidation, T defaultValue)
static <T> FormValidationValue<T>
error(String s)
static <T> FormValidationValue<T>
error(String s, T defaultValue)
FormValidation
getFormValidation()
T
getValue()
boolean
isOk()
static <T> FormValidationValue<T>
ok(T value)
String
toString()
static FormValidationValue<Integer>
validateNonNegativeInteger(String value, int defaultValue)
static FormValidationValue<Integer>
validatePositiveInteger(String value, int defaultValue)
-
-
-
Method Detail
-
ok
public static <T> FormValidationValue<T> ok(T value)
-
error
public static <T> FormValidationValue<T> error(String s)
-
error
public static <T> FormValidationValue<T> error(String s, T defaultValue)
-
error
public static <T> FormValidationValue<T> error(FormValidation formValidation)
-
error
public static <T> FormValidationValue<T> error(FormValidation formValidation, T defaultValue)
-
validatePositiveInteger
public static FormValidationValue<Integer> validatePositiveInteger(String value, int defaultValue)
-
validateNonNegativeInteger
public static FormValidationValue<Integer> validateNonNegativeInteger(String value, int defaultValue)
-
getFormValidation
public FormValidation getFormValidation()
-
isOk
public boolean isOk()
-
getValue
public T getValue()
-
-