cucumber.runtime.converters
Class TimeConverter<T>
java.lang.Object
cucumber.runtime.converters.ConverterWithFormat<T>
cucumber.runtime.converters.TimeConverter<T>
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter
- Direct Known Subclasses:
- CalendarConverter, DateConverter
public abstract class TimeConverter<T>
- extends ConverterWithFormat<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locale
protected final Locale locale
TimeConverter
public TimeConverter(Locale locale,
Class[] convertibleTypes)
addFormat
protected void addFormat(int style,
Locale locale)
add
protected void add(DateFormat dateFormat)
getFormats
public List<? extends Format> getFormats()
- Specified by:
getFormats
in class ConverterWithFormat<T>
- Returns:
- A Format to parse the argument
setOnlyFormat
public void setOnlyFormat(String dateFormatString,
Locale locale)
removeOnlyFormat
public void removeOnlyFormat()
getInstance
public static TimeConverter getInstance(ParameterType parameterType,
Locale locale)
getTimeClasses
public static List<Class> getTimeClasses()
Copyright © 2012. All Rights Reserved.