com.opensymphony.xwork.util
Class XWorkBasicConverter

java.lang.Object
  extended by ognl.DefaultTypeConverter
      extended by com.opensymphony.xwork.util.XWorkBasicConverter
All Implemented Interfaces:
ognl.TypeConverter

public class XWorkBasicConverter
extends ognl.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 occured while processing the type conversion.

Author:
Pat Lightbody, Mike Mosiewicz, Rainer Hermanns, Alexandru Popescu

Constructor Summary
XWorkBasicConverter()
           
 
Method Summary
 Object convertValue(Map context, Object o, Member member, String s, Object value, Class toType)
           
protected  boolean isIntegerType(Class type)
           
 
Methods inherited from class ognl.DefaultTypeConverter
convertValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWorkBasicConverter

public XWorkBasicConverter()
Method Detail

convertValue

public Object convertValue(Map context,
                           Object o,
                           Member member,
                           String s,
                           Object value,
                           Class toType)
Specified by:
convertValue in interface ognl.TypeConverter
Overrides:
convertValue in class ognl.DefaultTypeConverter

isIntegerType

protected boolean isIntegerType(Class type)

WebWork Project Page