public class XWorkBasicConverter extends DefaultTypeConverter
XWork will automatically handle the most common type conversion for you. This includes support for converting to and from Strings for each of the following:
Note that with arrays the type conversion will defer to the type of the array elements and try to convert each item individually. As with any other type conversion, if the conversion can't be performed the standard type conversion error reporting is used to indicate a problem occurred while processing the type conversion.
|Constructor and Description|
|Modifier and Type||Method and Description|
Converts the given value to a given type.
bigDecValue, bigIntValue, booleanValue, convertValue, convertValue, doubleValue, enumValue, getLocale, getTypeConverter, longValue, stringValue, stringValue
public void setContainer(Container container)
public Object convertValue(Map<String,Object> context, Object o, Member member, String propertyName, Object value, Class toType)
context- context under which the conversion is being done
o- target object in which the property is being set
member- member (Constructor, Method or Field) being set
propertyName- property name being set
value- value to be converted
toType- type to which value is converted
Copyright © 2000–2018 Apache Software Foundation. All rights reserved.