org.skyscreamer.nevado.jms.util
Class PropertyConvertUtil
java.lang.Object
org.skyscreamer.nevado.jms.util.PropertyConvertUtil
- Direct Known Subclasses:
- MapMessageConvertUtil
public class PropertyConvertUtil
- extends Object
Created by IntelliJ IDEA.
User: cpage
Date: 3/21/12
Time: 9:10 PM
To change this template use File | Settings | File Templates.
|
Method Summary |
static void |
checkValidObject(Object value)
|
static boolean |
convertToBoolean(String name,
Object value)
|
static byte |
convertToByte(String name,
Object value)
|
static double |
convertToDouble(String name,
Object value)
|
static float |
convertToFloat(String name,
Object value)
|
static int |
convertToInt(String name,
Object value)
|
static long |
convertToLong(String name,
Object value)
|
static short |
convertToShort(String name,
Object value)
|
static String |
convertToString(String name,
Object value)
|
protected static String |
createExceptionMessage(String name,
Object value,
String destType)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyConvertUtil
public PropertyConvertUtil()
convertToBoolean
public static boolean convertToBoolean(String name,
Object value)
throws javax.jms.MessageFormatException
- Throws:
javax.jms.MessageFormatException
convertToByte
public static byte convertToByte(String name,
Object value)
throws javax.jms.MessageFormatException
- Throws:
javax.jms.MessageFormatException
convertToShort
public static short convertToShort(String name,
Object value)
throws javax.jms.MessageFormatException
- Throws:
javax.jms.MessageFormatException
convertToInt
public static int convertToInt(String name,
Object value)
throws javax.jms.MessageFormatException
- Throws:
javax.jms.MessageFormatException
convertToLong
public static long convertToLong(String name,
Object value)
throws javax.jms.MessageFormatException
- Throws:
javax.jms.MessageFormatException
convertToFloat
public static float convertToFloat(String name,
Object value)
throws javax.jms.MessageFormatException
- Throws:
javax.jms.MessageFormatException
convertToDouble
public static double convertToDouble(String name,
Object value)
throws javax.jms.MessageFormatException
- Throws:
javax.jms.MessageFormatException
convertToString
public static String convertToString(String name,
Object value)
throws javax.jms.MessageFormatException
- Throws:
javax.jms.MessageFormatException
checkValidObject
public static void checkValidObject(Object value)
throws javax.jms.MessageFormatException
- Throws:
javax.jms.MessageFormatException
createExceptionMessage
protected static String createExceptionMessage(String name,
Object value,
String destType)
Copyright © 2012. All Rights Reserved.