cucumber.runtime.converters
Class DateConverter
java.lang.Object
cucumber.runtime.converters.ConverterWithFormat<java.util.Date>
cucumber.runtime.converters.DateConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter
public class DateConverter
- extends ConverterWithFormat<java.util.Date>
|
Constructor Summary |
DateConverter(java.util.Locale locale)
|
DateConverter(java.lang.String dateFormatString,
java.util.Locale locale)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateConverter
public DateConverter(java.util.Locale locale)
DateConverter
public DateConverter(java.lang.String dateFormatString,
java.util.Locale locale)
getFormats
public java.util.List<? extends java.text.Format> getFormats()
- Specified by:
getFormats in class ConverterWithFormat<java.util.Date>
- Returns:
- A Format to parse the argument
setOnlyFormat
public void setOnlyFormat(java.lang.String dateFormatString,
java.util.Locale locale)
removeOnlyFormat
public void removeOnlyFormat()