Package org.fastnate.data.properties
Class EnumConverter
java.lang.Object
org.fastnate.data.properties.EnumConverter
- All Implemented Interfaces:
PropertyConverter<Enum<?>>
Converts a string in an import file to an
Enum value.- Author:
- Tobias Liefke
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EnumConverter
public EnumConverter()
-
-
Method Details
-
convert
Description copied from interface:PropertyConverterConverts a value from import file to Java.- Specified by:
convertin interfacePropertyConverter<Enum<?>>- Parameters:
targetType- the type of the target propertyvalue- the value in the import file- Returns:
- the value in Java
-