|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.shared.messages.ConversionHelper
The ConversionHelper
class is used for converting values
carried by messages into specified types, if possible.
Constructor Summary | |
ConversionHelper()
|
Method Summary | |
static boolean |
toBoolean(java.lang.Object value)
Gets the boolean value of the given object. |
static byte |
toByte(java.lang.Object value)
Gets the byte value of the given object. |
static byte[] |
toBytes(java.lang.Object value)
Gets the bytes value of the given object. |
static char |
toChar(java.lang.Object value)
Gets the char value of the given object. |
static double |
toDouble(java.lang.Object value)
Gets the double value of the given object. |
static float |
toFloat(java.lang.Object value)
Gets the float value of the given object. |
static int |
toInt(java.lang.Object value)
Gets the int value of the given object. |
static long |
toLong(java.lang.Object value)
Gets the long value of the given object. |
static short |
toShort(java.lang.Object value)
Gets the short value of the given object. |
static java.lang.String |
toString(java.lang.Object value)
Gets the String value of the given object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConversionHelper()
Method Detail |
public static boolean toBoolean(java.lang.Object value) throws MessageValueException
MessageValueException
- If the given object can't be converted
into a boolean value.public static byte toByte(java.lang.Object value) throws MessageValueException
MessageValueException
- If the given object can't be converted
into a byte value.public static short toShort(java.lang.Object value) throws MessageValueException
MessageValueException
- If the given object can't be converted
into a short value.public static int toInt(java.lang.Object value) throws MessageValueException
MessageValueException
- If the given object can't be converted
into an int value.public static long toLong(java.lang.Object value) throws MessageValueException
MessageValueException
- If the given object can't be converted
into a long value.public static float toFloat(java.lang.Object value) throws MessageValueException
MessageValueException
- If the given object can't be converted
into a float value.public static double toDouble(java.lang.Object value) throws MessageValueException
MessageValueException
- If the given object can't be converted
into a double value.public static java.lang.String toString(java.lang.Object value)
public static char toChar(java.lang.Object value) throws MessageValueException
MessageValueException
- If the given object can't be converted
into a char value.public static byte[] toBytes(java.lang.Object value) throws MessageValueException
MessageValueException
- If the given object can't be converted
into a bytes array.
|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |