public class EnumTypeConverter
extends ognl.DefaultTypeConverter
Copied from webwork website :)
Constructor and Description |
---|
EnumTypeConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
convertFromString(String value,
Class toClass)
Converts one or more String values to the specified class.
|
Object |
convertValue(Map context,
Object o,
Class toClass)
Converts the given object to a given type.
|
public Object convertValue(Map context, Object o, Class toClass)
convertValue
in class ognl.DefaultTypeConverter
context
- - OGNL context under which the conversion is being doneo
- - the object to be convertedtoClass
- - the class that contains the code to convert to enumerationpublic Object convertFromString(String value, Class toClass)
value
- - the String values to be converted, such as those submitted from an HTML formtoClass
- - the class to convert toCopyright © 2003–2016 Atlassian. All rights reserved.