public class DateValidator extends AbstractParamValidator
_logger| Constructor and Description |
|---|
DateValidator() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Parameter parameter,
Object value)
Converts the given value into a text taking the given parameter information into account.
|
Object |
parse(Parameter parameter,
String text)
Converts the given text into a value taking the given parameter information into account.
|
void |
validate(Parameter parameter,
Object value)
Tests if the given value passes all constraints given in the supplied parameter information.
|
equalValues, isAllowedNullText, isAllowedNullValue, isValueContainedInValueSet, validateThatNullValueIsAllowed, validateThatValueIsInValueSet, validateThatValuesAreInValueSetpublic Object parse(Parameter parameter, String text) throws ParamParseException
ParamValidatorparameter - the parameter, must not be nulltext - the text to be converted into a value, must not be nullParamParseExceptionpublic String format(Parameter parameter, Object value) throws ParamFormatException
ParamValidatorparameter - the parameter, must not be nullvalue - the value to be converted into a text, can be nullnull.ParamFormatExceptionpublic void validate(Parameter parameter, Object value) throws ParamValidateException
ParamValidatornull since parameters can be allowed to have the value 'null'.parameter - the parameter, must not be nullvalue - the value to be tested, can be nullParamValidateExceptionCopyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.