public class DateTimeConverter
extends java.lang.Object
implements org.jbehave.core.steps.ParameterConverters.ParameterConverter
| Modifier and Type | Field and Description |
|---|---|
static org.joda.time.format.DateTimeFormatter |
CONVENTIONAL_FORMAT |
static org.joda.time.format.DateTimeFormatter |
ISO_FORMAT |
| Constructor and Description |
|---|
DateTimeConverter() |
DateTimeConverter(org.joda.time.format.DateTimeFormatter dateFormat) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.reflect.Type type) |
java.lang.Object |
convertValue(java.lang.String value,
java.lang.reflect.Type type) |
public static final org.joda.time.format.DateTimeFormatter CONVENTIONAL_FORMAT
public static final org.joda.time.format.DateTimeFormatter ISO_FORMAT
public DateTimeConverter()
public DateTimeConverter(org.joda.time.format.DateTimeFormatter dateFormat)
public boolean accept(java.lang.reflect.Type type)
accept in interface org.jbehave.core.steps.ParameterConverters.ParameterConverterpublic java.lang.Object convertValue(java.lang.String value,
java.lang.reflect.Type type)
convertValue in interface org.jbehave.core.steps.ParameterConverters.ParameterConverter