Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.beanutils.ConvertUtils
public class ConvertUtils
extends java.lang.Object
ConvertUtilsBean
which provides the
implementations for these methods.
ConvertUtilsBean
Method Summary | |
static String |
|
static Object |
|
static Object |
|
static void |
|
static void |
|
static boolean |
|
static byte |
|
static char |
|
static double |
|
static float |
|
static int |
|
static long |
|
static short |
|
static Converter | |
static void | |
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
static void |
|
public static String convert(Object value)
Convert the specified value into a String. For more details seeConvertUtilsBean
.
- See Also:
ConvertUtilsBean.convert(Object)
public static Object convert(String value, Class clazz)
Convert the specified value to an object of the specified class (if possible). Otherwise, return a String representation of the value. For more details seeConvertUtilsBean
.
public static Object convert(values[] , Class clazz)
Convert an array of specified values to an array of objects of the specified class (if possible). For more details seeConvertUtilsBean
.
- See Also:
ConvertUtilsBean.convert(String[], Class)
public static void deregister()
Remove all registeredConverter
s, and re-establish the standard Converters. For more details seeConvertUtilsBean
.
- See Also:
ConvertUtilsBean.deregister()
public static void deregister(Class clazz)
Remove any registeredConverter
for the specified destinationClass
. For more details seeConvertUtilsBean
.
- See Also:
ConvertUtilsBean.deregister(Class)
public static boolean getDefaultBoolean()
Deprecated. Register replacement converters for Boolean.TYPE and Boolean.class instead
Gets the default value for Boolean conversions.
public static byte getDefaultByte()
Deprecated. Register replacement converters for Byte.TYPE and Byte.class instead
Gets the default value for Byte conversions.
public static char getDefaultCharacter()
Deprecated. Register replacement converters for Character.TYPE and Character.class instead
Gets the default value for Character conversions.
public static double getDefaultDouble()
Deprecated. Register replacement converters for Double.TYPE and Double.class instead
Gets the default value for Double conversions.
public static float getDefaultFloat()
Deprecated. Register replacement converters for Float.TYPE and Float.class instead
Get the default value for Float conversions.
public static int getDefaultInteger()
Deprecated. Register replacement converters for Integer.TYPE and Integer.class instead
Gets the default value for Integer conversions.
public static long getDefaultLong()
Deprecated. Register replacement converters for Long.TYPE and Long.class instead
Gets the default value for Long conversions.
public static short getDefaultShort()
Deprecated. Register replacement converters for Short.TYPE and Short.class instead
Gets the default value for Short conversions.
public static Converter lookup(Class clazz)
Look up and return any registeredConverter
for the specified destination class; if there is no registered Converter, returnnull
. For more details seeConvertUtilsBean
.
- See Also:
ConvertUtilsBean.lookup(Class)
public static void register(Converter converter, Class clazz)
Register a customConverter
for the specified destinationClass
, replacing any previously registered Converter. For more details seeConvertUtilsBean
.
public static void setDefaultBoolean(boolean newDefaultBoolean)
Deprecated. Register replacement converters for Boolean.TYPE and Boolean.class instead
Sets the default value for Boolean conversions.
public static void setDefaultByte(byte newDefaultByte)
Deprecated. Register replacement converters for Byte.TYPE and Byte.class instead
Sets the default value for Byte conversions.
public static void setDefaultCharacter(char newDefaultCharacter)
Deprecated. Register replacement converters for Character.TYPE and Character.class instead
Sets the default value for Character conversions.
public static void setDefaultDouble(double newDefaultDouble)
Deprecated. Register replacement converters for Double.TYPE and Double.class instead
Sets the default value for Double conversions.
public static void setDefaultFloat(float newDefaultFloat)
Deprecated. Register replacement converters for Float.TYPE and Float.class instead
Sets the default value for Float conversions.
public static void setDefaultInteger(int newDefaultInteger)
Deprecated. Register replacement converters for Integer.TYPE and Integer.class instead
Sets the default value for Integer conversions.
public static void setDefaultLong(long newDefaultLong)
Deprecated. Register replacement converters for Long.TYPE and Long.class instead
Sets the default value for Long conversions.
public static void setDefaultShort(short newDefaultShort)
Deprecated. Register replacement converters for Short.TYPE and Short.class instead
Sets the default value for Short conversions.