Class StringToEnum
java.lang.Object
org.springframework.binding.convert.converters.StringToObject
org.springframework.binding.convert.converters.StringToEnum
- All Implemented Interfaces:
Converter
,TwoWayConverter
Converts from a textual representation to a
Enum
. The text should be the enum's label.- Author:
- Scott Andrews
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.binding.convert.converters.StringToObject
convertSourceToTargetClass, convertTargetToSourceClass, getSourceClass, getTargetClass
-
Constructor Details
-
StringToEnum
public StringToEnum()
-
-
Method Details
-
toObject
- Specified by:
toObject
in classStringToObject
-
toString
- Specified by:
toString
in classStringToObject
-