public class ParameterValidation
extends java.lang.Object
Constructor and Description |
---|
ParameterValidation() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProperty()
When comparing two Parameters, get the "other" parameter's property.
|
boolean |
isGreaterThan() |
boolean |
isGreaterThanOrEqual() |
boolean |
isLessThan() |
boolean |
isLessThanOrEqual() |
boolean |
isMaxValue() |
boolean |
isMinValue() |
boolean |
isNotEmpty() |
boolean |
isNumeric() |
void |
setGreaterThan(java.lang.String property)
The current Parameter's input value should be greater than
the value of the specified Parameter.
|
void |
setGreaterThanOrEqual(java.lang.String property)
The current Parameter's input value should be greater than or equal to
the value of the specified Parameter.
|
void |
setLessThan(java.lang.String property)
The current Parameter's input value should be lesser than
the value of the specified Parameter.
|
void |
setLessThanOrEqual(java.lang.String property)
The current Parameter's input value should be less than or equal to
the value of the specified Parameter.
|
void |
setMaxValue(boolean maxValue)
Fail validation if the input is higher than the specified max value
|
void |
setMinValue(boolean minValue)
Fail validation if the input is lower than the specified min value
|
void |
setNotEmpty(boolean notEmpty)
Fail validation if the input is empty
|
void |
setNumeric(boolean numeric)
Fail validation if the input is not numeric
|
public boolean isNotEmpty()
public void setNotEmpty(boolean notEmpty)
public boolean isNumeric()
public void setNumeric(boolean numeric)
public boolean isMinValue()
public void setMinValue(boolean minValue)
public boolean isMaxValue()
public void setMaxValue(boolean maxValue)
public boolean isGreaterThan()
public void setGreaterThan(java.lang.String property)
public boolean isLessThan()
public void setLessThan(java.lang.String property)
public boolean isGreaterThanOrEqual()
public void setGreaterThanOrEqual(java.lang.String property)
public boolean isLessThanOrEqual()
public void setLessThanOrEqual(java.lang.String property)
public java.lang.String getProperty()