|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.conversion.impl.DefaultTypeConverter
com.opensymphony.xwork2.conversion.impl.EnumTypeConverter
@Deprecated public class EnumTypeConverter
EnumTypeConverter
This class converts java 5 enums to String and from String[] to enum.
| Field Summary |
|---|
| Fields inherited from interface com.opensymphony.xwork2.conversion.TypeConverter |
|---|
NO_CONVERSION_POSSIBLE, TYPE_CONVERTER_CONTEXT_KEY |
| Constructor Summary | |
|---|---|
EnumTypeConverter()
Deprecated. |
|
| Method Summary | |
|---|---|
java.lang.Enum |
convertFromString(java.lang.String value,
java.lang.Class toClass)
Deprecated. Converts one or more String values to the specified class. |
java.lang.Object |
convertValue(java.util.Map<java.lang.String,java.lang.Object> context,
java.lang.Object o,
java.lang.Class toClass)
Deprecated. Converts the given object to a given type. |
| Methods inherited from class com.opensymphony.xwork2.conversion.impl.DefaultTypeConverter |
|---|
bigDecValue, bigIntValue, booleanValue, convertValue, convertValue, doubleValue, enumValue, getTypeConverter, longValue, stringValue, stringValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumTypeConverter()
| Method Detail |
|---|
public java.lang.Object convertValue(java.util.Map<java.lang.String,java.lang.Object> context,
java.lang.Object o,
java.lang.Class toClass)
convertValue in class DefaultTypeConvertercontext - - OGNL context under which the conversion is being doneo - - the object to be convertedtoClass - - the class that contains the code to convert to enumeration
public java.lang.Enum convertFromString(java.lang.String value,
java.lang.Class toClass)
value - - the String values to be converted, such as those submitted from an HTML formtoClass - - the class to convert to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||