com.uwyn.rife.tools
Class Convert

java.lang.Object
  extended by com.uwyn.rife.tools.Convert

public class Convert
extends Object


Constructor Summary
Convert()
           
 
Method Summary
static boolean toBoolean(Object value)
           
static boolean toBoolean(Object value, boolean defaultValue)
           
static byte toByte(Object value)
           
static byte toByte(Object value, byte defaultValue)
           
static char toChar(Object value)
           
static char toChar(Object value, char defaultValue)
           
static Date toDate(Object value)
           
static double toDouble(Object value)
           
static double toDouble(Object value, double defaultValue)
           
static float toFloat(Object value)
           
static float toFloat(Object value, float defaultValue)
           
static int toInt(Object value)
           
static int toInt(Object value, int defaultValue)
           
static long toLong(Object value)
           
static long toLong(Object value, long defaultValue)
           
static short toShort(Object value)
           
static short toShort(Object value, short defaultValue)
           
static String toString(Object value)
           
static Object toType(Object value, Class target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Convert

public Convert()
Method Detail

toType

public static Object toType(Object value,
                            Class target)
                     throws ConversionException
Throws:
ConversionException

toString

public static String toString(Object value)

toChar

public static char toChar(Object value,
                          char defaultValue)

toChar

public static char toChar(Object value)
                   throws ConversionException
Throws:
ConversionException

toBoolean

public static boolean toBoolean(Object value,
                                boolean defaultValue)

toBoolean

public static boolean toBoolean(Object value)
                         throws ConversionException
Throws:
ConversionException

toByte

public static byte toByte(Object value,
                          byte defaultValue)

toByte

public static byte toByte(Object value)
                   throws ConversionException
Throws:
ConversionException

toShort

public static short toShort(Object value,
                            short defaultValue)

toShort

public static short toShort(Object value)
                     throws ConversionException
Throws:
ConversionException

toInt

public static int toInt(Object value,
                        int defaultValue)

toInt

public static int toInt(Object value)
                 throws ConversionException
Throws:
ConversionException

toLong

public static long toLong(Object value,
                          long defaultValue)

toLong

public static long toLong(Object value)
                   throws ConversionException
Throws:
ConversionException

toFloat

public static float toFloat(Object value,
                            float defaultValue)

toFloat

public static float toFloat(Object value)
                     throws ConversionException
Throws:
ConversionException

toDouble

public static double toDouble(Object value,
                              double defaultValue)

toDouble

public static double toDouble(Object value)
                       throws ConversionException
Throws:
ConversionException

toDate

public static Date toDate(Object value)
                   throws ConversionException
Throws:
ConversionException


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.