cucumber.runtime.converters
Class DateConverter

java.lang.Object
  extended by cucumber.runtime.converters.ConverterWithFormat<java.util.Date>
      extended by 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)
           
 
Method Summary
 java.util.List<? extends java.text.Format> getFormats()
           
 void removeOnlyFormat()
           
 void setOnlyFormat(java.lang.String dateFormatString, java.util.Locale locale)
           
 
Methods inherited from class cucumber.runtime.converters.ConverterWithFormat
canConvert, fromString, toString, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateConverter

public DateConverter(java.util.Locale locale)

DateConverter

public DateConverter(java.lang.String dateFormatString,
                     java.util.Locale locale)
Method Detail

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()