Object
|
convert(Object value, Class targetType)
Convert the value to an object of the specified class (if
possible).
|
String
|
convert(Object value)
Convert the specified value into a String.
|
Object
|
convert(String value, Class clazz)
Convert the specified value to an object of the specified class (if
possible).
|
Object
|
convert(String[] values, Class clazz)
Convert an array of specified values to an array of objects of the
specified class (if possible).
|
void
|
deregister(Class clazz)
Remove any registered Converter for the specified destination
Class .
|
void
|
deregister()
Remove all registered Converter s, and re-establish the
standard Converters.
|
boolean
|
getDefaultBoolean()
This method is deprecated.
Register replacement converters for Boolean.TYPE and
Boolean.class instead
|
byte
|
getDefaultByte()
This method is deprecated.
Register replacement converters for Byte.TYPE and
Byte.class instead
|
char
|
getDefaultCharacter()
This method is deprecated.
Register replacement converters for Character.TYPE and
Character.class instead
|
double
|
getDefaultDouble()
This method is deprecated.
Register replacement converters for Double.TYPE and
Double.class instead
|
float
|
getDefaultFloat()
This method is deprecated.
Register replacement converters for Float.TYPE and
Float.class instead
|
int
|
getDefaultInteger()
This method is deprecated.
Register replacement converters for Integer.TYPE and
Integer.class instead
|
long
|
getDefaultLong()
This method is deprecated.
Register replacement converters for Long.TYPE and
Long.class instead
|
short
|
getDefaultShort()
This method is deprecated.
Register replacement converters for Short.TYPE and
Short.class instead
|
static
ConvertUtilsBean
|
getInstance()
Get singleton instance
|
Converter
|
lookup(Class clazz)
Look up and return any registered Converter for the specified
destination class; if there is no registered Converter, return
null .
|
Converter
|
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 .
|
void
|
register(boolean throwException, boolean defaultNull, int defaultArraySize)
Register the provided converters with the specified defaults.
|
void
|
register(Converter converter, Class clazz)
Register a custom Converter for the specified destination
Class , replacing any previously registered Converter.
|
void
|
setDefaultBoolean(boolean newDefaultBoolean)
This method is deprecated.
Register replacement converters for Boolean.TYPE and
Boolean.class instead
|
void
|
setDefaultByte(byte newDefaultByte)
This method is deprecated.
Register replacement converters for Byte.TYPE and
Byte.class instead
|
void
|
setDefaultCharacter(char newDefaultCharacter)
This method is deprecated.
Register replacement converters for Character.TYPE and
Character.class instead
|
void
|
setDefaultDouble(double newDefaultDouble)
This method is deprecated.
Register replacement converters for Double.TYPE and
Double.class instead
|
void
|
setDefaultFloat(float newDefaultFloat)
This method is deprecated.
Register replacement converters for Float.TYPE and
Float.class instead
|
void
|
setDefaultInteger(int newDefaultInteger)
This method is deprecated.
Register replacement converters for Integer.TYPE and
Integer.class instead
|
void
|
setDefaultLong(long newDefaultLong)
This method is deprecated.
Register replacement converters for Long.TYPE and
Long.class instead
|
void
|
setDefaultShort(short newDefaultShort)
This method is deprecated.
Register replacement converters for Short.TYPE and
Short.class instead
|