cucumber.runtime.converters
Class CalendarConverter

java.lang.Object
  extended by cucumber.runtime.converters.ConverterWithFormat<T>
      extended by cucumber.runtime.converters.TimeConverter<Calendar>
          extended by cucumber.runtime.converters.CalendarConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter

public class CalendarConverter
extends TimeConverter<Calendar>


Field Summary
 
Fields inherited from class cucumber.runtime.converters.TimeConverter
locale
 
Constructor Summary
CalendarConverter(Locale locale)
           
 
Method Summary
protected  Object transform(Format format, String argument)
          Parses a value using one of the java.util.text format classes.
 
Methods inherited from class cucumber.runtime.converters.TimeConverter
add, addFormat, getFormats, getInstance, getTimeClasses, removeOnlyFormat, setOnlyFormat
 
Methods inherited from class cucumber.runtime.converters.ConverterWithFormat
canConvert, fromString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarConverter

public CalendarConverter(Locale locale)
Method Detail

transform

protected Object transform(Format format,
                           String argument)
Description copied from class: ConverterWithFormat
Parses a value using one of the java.util.text format classes.

Overrides:
transform in class ConverterWithFormat<Calendar>
Parameters:
format - The format to use
argument - The object to parse
Returns:
The object


Copyright © 2012. All Rights Reserved.