lookup(Class sourceType, Class targetType) Look up and return any registered
Converter for the specified
source and destination class; if there is no registered Converter,
return null.
Convert the specified value to an object of the specified class (if
possible). Otherwise, return a String representation of the value.
For more details see ConvertUtilsBean.
Parameters: value - Value to be converted (may be null) Parameters: clazz - Java class to be converted to The converted value See Also:ConvertUtilsBean.convert(StringClass)
Convert an array of specified values to an array of objects of the
specified class (if possible).
For more details see ConvertUtilsBean.
Parameters: values - Array of values to be converted Parameters: clazz - Java array or element class to be converted to The converted value See Also:ConvertUtilsBean.convert(String[]Class)
Convert the value to an object of the specified class (if
possible).
Parameters: value - Value to be converted (may be null) Parameters: targetType - Class of the value to be converted to The converted value exception: ConversionException - if thrown by an underlying Converter
Look up and return any registered
Converter for the specified
source and destination class; if there is no registered Converter,
return null.
Parameters: sourceType - Class of the value being converted Parameters: targetType - Class of the value to be converted to The registered Converter or null if not found
Register a custom
Converter for the specified destination
Class, replacing any previously registered Converter.
For more details see ConvertUtilsBean.
Parameters: converter - Converter to be registered Parameters: clazz - Destination class for conversions performed by thisConverter See Also:ConvertUtilsBean.register(ConverterClass)
setDefaultBoolean
public static void setDefaultBoolean(boolean newDefaultBoolean)(Code)
Sets the default value for Boolean conversions.
Parameters: newDefaultBoolean - The default Boolean value
setDefaultByte
public static void setDefaultByte(byte newDefaultByte)(Code)
Sets the default value for Byte conversions.
Parameters: newDefaultByte - The default Byte value
setDefaultCharacter
public static void setDefaultCharacter(char newDefaultCharacter)(Code)
Sets the default value for Character conversions.
Parameters: newDefaultCharacter - The default Character value
setDefaultDouble
public static void setDefaultDouble(double newDefaultDouble)(Code)
Sets the default value for Double conversions.
Parameters: newDefaultDouble - The default Double value
setDefaultFloat
public static void setDefaultFloat(float newDefaultFloat)(Code)
Sets the default value for Float conversions.
Parameters: newDefaultFloat - The default Float value
setDefaultInteger
public static void setDefaultInteger(int newDefaultInteger)(Code)
Sets the default value for Integer conversions.
Parameters: newDefaultInteger - The default Integer value
setDefaultLong
public static void setDefaultLong(long newDefaultLong)(Code)
Sets the default value for Long conversions.
Parameters: newDefaultLong - The default Long value
setDefaultShort
public static void setDefaultShort(short newDefaultShort)(Code)
Sets the default value for Short conversions.
Parameters: newDefaultShort - The default Short value