org.esa.beam.visat.dialogs
Class DateValidator
java.lang.Object
org.esa.beam.framework.param.AbstractParamValidator
org.esa.beam.visat.dialogs.DateValidator
- All Implemented Interfaces:
- ParamValidator
public class DateValidator
- extends AbstractParamValidator
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateValidator
public DateValidator()
parse
public Object parse(Parameter parameter,
String text)
throws ParamParseException
- Description copied from interface:
ParamValidator
- Converts the given text into a value taking the given parameter information into account.
- Parameters:
parameter - the parameter, must not be nulltext - the text to be converted into a value, must not be null
- Returns:
- the value represented by the text
- Throws:
ParamParseException
format
public String format(Parameter parameter,
Object value)
throws ParamFormatException
- Description copied from interface:
ParamValidator
- Converts the given value into a text taking the given parameter information into account.
- Parameters:
parameter - the parameter, must not be nullvalue - the value to be converted into a text, can be null
- Returns:
- the value represented by the text, never
null.
- Throws:
ParamFormatException
validate
public void validate(Parameter parameter,
Object value)
throws ParamValidateException
- Description copied from interface:
ParamValidator
- Tests if the given value passes all constraints given in the supplied parameter information. The value can also
be
null since parameters can be allowed to have the value 'null'.
- Parameters:
parameter - the parameter, must not be nullvalue - the value to be tested, can be null
- Throws:
ParamValidateException
Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.