eu.esdihumboldt.hale.common.align.extension.function.validator
Class NumberValidator
java.lang.Object
eu.esdihumboldt.hale.common.align.extension.function.validator.NumberValidator
- All Implemented Interfaces:
- Validator
public class NumberValidator
- extends Object
- implements Validator
Validator that checks whether the value is a number.
Parameters:
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 |
- Author:
- Kai Schwierczek
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberValidator
public NumberValidator()
validate
public String validate(String value)
- Description copied from interface:
Validator
- Checks whether the given value is valid.
- Specified by:
validate
in interface Validator
- Parameters:
value
- the value to check
- Returns:
- null, if the value is valid, otherwise the reason why it's
invalid
- See Also:
Validator.validate(java.lang.String)
setParameters
public void setParameters(com.google.common.collect.ListMultimap<String,String> parameters)
- Description copied from interface:
Validator
- Sets this validators parameters.
- Specified by:
setParameters
in interface Validator
- Parameters:
parameters
- the parameters- See Also:
Validator.setParameters(com.google.common.collect.ListMultimap)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d