public class EnumTypeConverter
extends ognl.DefaultTypeConverter
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 toStrutsTypeConverter.convertFromString(java.util.Map, String[], Class)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.