cucumber.runtime.converters
Class EnumConverter

java.lang.Object
  extended by cucumber.runtime.converters.ConverterWithEnumFormat<Enum>
      extended by cucumber.runtime.converters.EnumConverter
All Implemented Interfaces:
cucumber.deps.com.thoughtworks.xstream.converters.ConverterMatcher, cucumber.deps.com.thoughtworks.xstream.converters.SingleValueConverter

public class EnumConverter
extends ConverterWithEnumFormat<Enum>


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

Constructor Detail

EnumConverter

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

toString

public String toString(Object obj)
Specified by:
toString in interface cucumber.deps.com.thoughtworks.xstream.converters.SingleValueConverter

canConvert

public boolean canConvert(Class type)
Specified by:
canConvert in interface cucumber.deps.com.thoughtworks.xstream.converters.ConverterMatcher


Copyright © 2012. All Rights Reserved.