Save This Page
Home » xwork-2.1.5 » com.opensymphony » xwork2 » conversion » impl » [javadoc | source]
com.opensymphony.xwork2.conversion.impl
public class: XWorkBasicConverter [javadoc | source]
java.lang.Object
   com.opensymphony.xwork2.conversion.impl.DefaultTypeConverter
      com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter

All Implemented Interfaces:
    TypeConverter

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.

Method from com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter Summary:
convertValue,   isInRange,   isIntegerType,   setObjectFactory,   setObjectTypeDeterminer,   setXWorkConverter
Methods from com.opensymphony.xwork2.conversion.impl.DefaultTypeConverter:
bigDecValue,   bigIntValue,   booleanValue,   convertValue,   convertValue,   convertValue,   doubleValue,   enumValue,   getTypeConverter,   longValue,   stringValue,   stringValue
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter Detail:
 public Object convertValue(Map<String, Object> context,
    Object o,
    Member member,
    String s,
    Object value,
    Class toType) 
 protected boolean isInRange(Number value,
    String stringValue,
    Class toType) 
 protected boolean isIntegerType(Class type) 
 public  void setObjectFactory(ObjectFactory fac) 
 public  void setObjectTypeDeterminer(ObjectTypeDeterminer det) 
 public  void setXWorkConverter(XWorkConverter conv)