Package org.jbehave.core.steps
Class ParameterConverters.DateConverter
java.lang.Object
org.jbehave.core.steps.ParameterConverters.AbstractParameterConverter<String,T>
org.jbehave.core.steps.ParameterConverters.FromStringParameterConverter<Date>
org.jbehave.core.steps.ParameterConverters.DateConverter
- All Implemented Interfaces:
ParameterConverters.ParameterConverter<String,Date>
- Enclosing class:
- ParameterConverters
public static class ParameterConverters.DateConverter
extends ParameterConverters.FromStringParameterConverter<Date>
Parses value to a
Date using an injectable DateFormat
(defaults to new SimpleDateFormat("dd/MM/yyyy"))-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertValue(String value, Type type) Convert the value from one type to another, for example from abooleanto aString.Methods inherited from class org.jbehave.core.steps.ParameterConverters.AbstractParameterConverter
canConvertFrom, canConvertTo, getSourceType, getTargetType
-
Field Details
-
DEFAULT_FORMAT
-
-
Constructor Details
-
DateConverter
public DateConverter() -
DateConverter
-
-
Method Details
-
convertValue
Description copied from interface:ParameterConverters.ParameterConverterConvert the value from one type to another, for example from abooleanto aString.- Parameters:
value- the value to be convertedtype- the type descriptor that supplies extra information about the requested result type- Returns:
- the converted value
-