com.codestreet.messageforge
Class RFldType

java.lang.Object
  extended bycom.codestreet.messageforge.RFldType

public class RFldType
extends java.lang.Object

Field type-safe enumeration.

Author:
Jawaid Hakim.

Field Summary
static RFldType BEAN
          Bean
static RFldType BEANLIST
          Bean list.
static RFldType BOOL
          boolean.
static RFldType DATEARRAY
          Date[]
static RFldType DATETIME
          See TibrvMsg.DATETIME.
static RFldType DECIMAL
          BigDecimal.
static RFldType F32
          float.
static RFldType F32ARRAY
          float[].
static RFldType F64
          double.
static RFldType F64ARRAY
          double[].
static RFldType I16
          short.
static RFldType I16ARRAY
          short[].
static RFldType I32
          int.
static RFldType I32ARRAY
          int[].
static RFldType I64
          long.
static RFldType I64ARRAY
          long[].
static RFldType I8
          byte.
static RFldType I8ARRAY
          byte[].
static RFldType IPADDR32
          See TibrvMsg.IPADDR32
static RFldType IPPORT16
          See TibrvMsg.IPPORT16
static RFldType MEMO
          Memo.
static RFldType MONEY
          RFldMoney.
static RFldType MSG
          TibrvMsg.
static RFldType MSGARRAY
          TibrvMsg[]
static RFldType MSGOBJ
          RMsg.
static RFldType MSGOBJARRAY
          RMsg[].
static RFldType MSGOBJHASHTABLE
          java.util.Hashtable of RMsg.
static RFldType OPAQUE
          byte[].
static RFldType STRING
          String.
static RFldType STRINGARRAY
          String[]
static RFldType STRINGHASHTABLE
          java.util.Hashtable of String - the key/value are both String.
static RFldType STRINGLIST
          java.util.List of String - the key/value are both String.
static RFldType U16
          Unsigned short.
static RFldType U16ARRAY
          Unsigned short[]
static RFldType U32
          Unsigned int.
static RFldType U32ARRAY
          Unsigned int[].
static RFldType U64
          Unsigned long.
static RFldType U64ARRAY
          Unsigned long[].
static RFldType U8
          Unsigned byte.
static RFldType U8ARRAY
          Unsigned byte[].
static RFldType XML
          See TibrvMsg.XML.
 
Method Summary
 boolean isComplex()
          Check if this field is a complex type that cannot be directly represented by a corresponding TibrvMsg type.
 boolean isJMSSupported()
          Check if this field is supported by JMS.
 boolean isTibrvSupported()
          Check if this field is supported by TIBCO Rendezvous.
 short shortValue()
          Get the field type as a short.
 java.lang.String toString()
          Override toString().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DECIMAL

public static final RFldType DECIMAL
BigDecimal.


MONEY

public static final RFldType MONEY
RFldMoney.


I8

public static final RFldType I8
byte.


I8ARRAY

public static final RFldType I8ARRAY
byte[].


I16

public static final RFldType I16
short.


I16ARRAY

public static final RFldType I16ARRAY
short[].


I32

public static final RFldType I32
int.


I32ARRAY

public static final RFldType I32ARRAY
int[].


I64

public static final RFldType I64
long.


I64ARRAY

public static final RFldType I64ARRAY
long[].


U8

public static final RFldType U8
Unsigned byte.


U8ARRAY

public static final RFldType U8ARRAY
Unsigned byte[].


U16

public static final RFldType U16
Unsigned short.


U16ARRAY

public static final RFldType U16ARRAY
Unsigned short[]


U32

public static final RFldType U32
Unsigned int.


U32ARRAY

public static final RFldType U32ARRAY
Unsigned int[].


U64

public static final RFldType U64
Unsigned long.


U64ARRAY

public static final RFldType U64ARRAY
Unsigned long[].


F32

public static final RFldType F32
float.


F32ARRAY

public static final RFldType F32ARRAY
float[].


F64

public static final RFldType F64
double.


F64ARRAY

public static final RFldType F64ARRAY
double[].


MSG

public static final RFldType MSG
TibrvMsg.


OPAQUE

public static final RFldType OPAQUE
byte[].


STRING

public static final RFldType STRING
String.


XML

public static final RFldType XML
See TibrvMsg.XML.


DATETIME

public static final RFldType DATETIME
See TibrvMsg.DATETIME.


BOOL

public static final RFldType BOOL
boolean.


IPADDR32

public static final RFldType IPADDR32
See TibrvMsg.IPADDR32


IPPORT16

public static final RFldType IPPORT16
See TibrvMsg.IPPORT16


MEMO

public static final RFldType MEMO
Memo.


MSGARRAY

public static final RFldType MSGARRAY
TibrvMsg[]


DATEARRAY

public static final RFldType DATEARRAY
Date[]


STRINGARRAY

public static final RFldType STRINGARRAY
String[]


BEAN

public static final RFldType BEAN
Bean


BEANLIST

public static final RFldType BEANLIST
Bean list.


MSGOBJ

public static final RFldType MSGOBJ
RMsg.


MSGOBJARRAY

public static final RFldType MSGOBJARRAY
RMsg[].


MSGOBJHASHTABLE

public static final RFldType MSGOBJHASHTABLE
java.util.Hashtable of RMsg.


STRINGHASHTABLE

public static final RFldType STRINGHASHTABLE
java.util.Hashtable of String - the key/value are both String.


STRINGLIST

public static final RFldType STRINGLIST
java.util.List of String - the key/value are both String.

Method Detail

toString

public final java.lang.String toString()
Override toString().

Returns:
String representation of object type.
See Also:
shortValue()

shortValue

public final short shortValue()
Get the field type as a short.

Returns:
Field type as a short.

isComplex

public final boolean isComplex()
Check if this field is a complex type that cannot be directly represented by a corresponding TibrvMsg type. To send a complex field in a TibrvMsg, the field has to be sent as a (nested) byte array or as a nested TibrvMsg. To get the byte representation of a complex field call its getAsBytes() method.

Returns:
Returns true if this field is a complex type. Otherwise, false.

isJMSSupported

public final boolean isJMSSupported()
Check if this field is supported by JMS.

Returns:
Returns true if this field is a supported by JMS. Otherwise, false. The Java data types supported by JMS in a MapMessage are the following: boolean, Boolean byte, Byte, byte[] short, Short int, Integer long, Long float, Float double, Double String

isTibrvSupported

public final boolean isTibrvSupported()
Check if this field is supported by TIBCO Rendezvous.

Returns:
Returns true if this field is a supported by TIBCO Rendezvous. Otherwise, false.


Copyright © 2003-2006 CodeStreet. All Rights Reserved.