public class NumberValidator extends Object implements Validator
name | value | description | default |
---|---|---|---|
type | "integer"|"float" | whether the number should be an integer or a floating point number | integer |
min | float | minimum value of the number | no bounds |
max | float | maximum value of the number | no bounds |
Constructor and Description |
---|
NumberValidator() |
public String validate(String value)
Validator
validate
in interface Validator
value
- the value to checkValidator.validate(java.lang.String)
public void setParameters(com.google.common.collect.ListMultimap<String,String> parameters)
Validator
setParameters
in interface Validator
parameters
- the parametersValidator.setParameters(com.google.common.collect.ListMultimap)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a