cgl.narada.jms
Class JmsPropertyConversionTable

java.lang.Object
  extended by cgl.narada.jms.JmsPropertyConversionTable

public class JmsPropertyConversionTable
extends Object

This is the JMS property conversion table, as specified in the JMS specification. Problems in concersion usually result in the throwing of the MessageFormatException. Column's specify the type that can be read as a tragetted type. Thus a byte can only be read as a byte/String whereas a short can be returned from a byte, short and String.


Constructor Summary
JmsPropertyConversionTable()
           
 
Method Summary
static boolean getBooleanValue(Object propertyValue)
           
static byte getByteValue(Object propertyValue)
           
static double getDoubleValue(Object propertyValue)
           
static float getFloatValue(Object propertyValue)
           
static int getIntValue(Object propertyValue)
           
static long getLongValue(Object propertyValue)
           
static short getShortValue(Object propertyValue)
           
static String getStringValue(Object propertyValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsPropertyConversionTable

public JmsPropertyConversionTable()
Method Detail

getBooleanValue

public static boolean getBooleanValue(Object propertyValue)
                               throws MessageFormatException
Throws:
MessageFormatException

getByteValue

public static byte getByteValue(Object propertyValue)
                         throws MessageFormatException
Throws:
MessageFormatException

getShortValue

public static short getShortValue(Object propertyValue)
                           throws MessageFormatException
Throws:
MessageFormatException

getIntValue

public static int getIntValue(Object propertyValue)
                       throws MessageFormatException
Throws:
MessageFormatException

getLongValue

public static long getLongValue(Object propertyValue)
                         throws MessageFormatException
Throws:
MessageFormatException

getFloatValue

public static float getFloatValue(Object propertyValue)
                           throws MessageFormatException
Throws:
MessageFormatException

getDoubleValue

public static double getDoubleValue(Object propertyValue)
                             throws MessageFormatException
Throws:
MessageFormatException

getStringValue

public static String getStringValue(Object propertyValue)
                             throws MessageFormatException
Throws:
MessageFormatException


For comments and suggestions please send e-mail to The NaradaBrokering Project