cucumber.runtime.converters
Class ConverterWithEnumFormat<T extends Enum>

java.lang.Object
  extended by cucumber.runtime.converters.ConverterWithFormat<T>
      extended by cucumber.runtime.converters.ConverterWithEnumFormat<T>
All Implemented Interfaces:
com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter
Direct Known Subclasses:
EnumConverter

public class ConverterWithEnumFormat<T extends Enum>
extends ConverterWithFormat<T>


Constructor Summary
ConverterWithEnumFormat(Locale locale, Class<? extends Enum> enumClass)
           
 
Method Summary
 T fromString(String string)
           
 List<Format> getFormats()
           
 
Methods inherited from class cucumber.runtime.converters.ConverterWithFormat
canConvert, toString, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterWithEnumFormat

public ConverterWithEnumFormat(Locale locale,
                               Class<? extends Enum> enumClass)
Method Detail

fromString

public T fromString(String string)
Specified by:
fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter
Overrides:
fromString in class ConverterWithFormat<T extends Enum>

getFormats

public List<Format> getFormats()
Specified by:
getFormats in class ConverterWithFormat<T extends Enum>
Returns:
A Format to parse the argument


Copyright © 2012. All Rights Reserved.