com.ibm.di.fc.castorbind
Class TypeWrapper

java.lang.Object
  extended by com.ibm.di.fc.castorbind.TypeWrapper

public class TypeWrapper
extends java.lang.Object

This class provides information for types supported by the Castor Function Component. String , Date , Boolean , Integer , Long , Double , Float , Big decimal , Byte , Short , Character , String array , Byte array , Char array


Field Summary
static java.util.List mSupportedTypes
          An ArrayList holding the supported types
static java.lang.String TYPE_BIGDECIMAL
          The key name passed to the getObject(String) method that will return the inner BigDecimal object.
static java.lang.String TYPE_BOOLEAN
          The key name passed to the getObject(String) method that will return the inner Boolean object.
static java.lang.String TYPE_BYTE
          The key name passed to the getObject(String) method that will return the inner Byte object.
static java.lang.String TYPE_BYTES
          The key name passed to the getObject(String) method that will return the inner ByteArrayWrapper object.
static java.lang.String TYPE_CHAR
          The key name passed to the getObject(String) method that will return the inner Character object.
static java.lang.String TYPE_CHARS
          The key name passed to the getObject(String) method that will return the inner CharArrayWrapper object.
static java.lang.String TYPE_DATE
          The key name passed to the getObject(String) method that will return the inner Date object.
static java.lang.String TYPE_DOUBLE
          The key name passed to the getObject(String) method that will return the inner Double object.
static java.lang.String TYPE_FLOAT
          The key name passed to the getObject(String) method that will return the inner Float object.
static java.lang.String TYPE_INTEGER
          The key name passed to the getObject(String) method that will return the inner Integer object.
static java.lang.String TYPE_LONG
          The key name passed to the getObject(String) method that will return the inner Long object.
static java.lang.String TYPE_SHORT
          The key name passed to the getObject(String) method that will return the inner Short object.
static java.lang.String TYPE_STRING
          The key name passed to the getObject(String) method that will return the inner String object.
static java.lang.String TYPE_STRINGS
          The key name passed to the getObject(String) method that will return the inner StringArrayWrapper object.
 
Constructor Summary
TypeWrapper()
          Class constructor
 
Method Summary
 java.math.BigDecimal getBigDecimal()
          This method returns BigDecimal representation of the member variable
 java.lang.Boolean getBoolean()
          This method returns Boolean representation of the member variable
 java.lang.Byte getByte()
          This method returns Byte representation of the member variable
 ByteArrayWrapper getBytes()
          This method returns ByteArrayWrapper representation of the member variable
 java.lang.Character getCharacter()
          This method returns Character representation of the member variable
 CharArrayWrapper getChars()
          This method returns CharArrayWrapper representation of the member variable
 java.util.Date getDate()
          This method returns Date representation of the member variable
 java.lang.Double getDouble()
          This method returns Double representation of the member variable
 java.lang.Float getFloat()
          This method returns Float representation of the member variable
 java.lang.Integer getInteger()
          This method returns Integer representation of the member variable
 java.lang.Long getLong()
          This method returns Long representation of the member variable
 java.lang.Object getObject(java.lang.String aType)
          The method accepts a String name of the specified type and returns an object of this type if it is supported , else it returns null
 java.lang.Short getShort()
          This method returns Short representation of the member variable
 java.lang.String getString()
          This method returns String representation of the member variable
 StringArrayWrapper getStrings()
          This method returns StringArrayWrapper representation of the member variable
static boolean isSupported(java.lang.String aType)
          Checks whether a type is supported by the FC
 void setBigDecimal(java.math.BigDecimal aBigDecimal)
          Sets member variable mBigDecimal
 void setBoolean(java.lang.Boolean aBoolean)
          Sets member variable mBooolean
 void setByte(java.lang.Byte aByte)
          Sets member variable mByte
 void setBytes(ByteArrayWrapper aByteArrayWrapper)
          Sets member variable mBAWrapper
 void setCharacter(java.lang.Character aChar)
          Sets member variable mChar
 void setChars(CharArrayWrapper aCharArrayWrapper)
          Sets member variable mCAWrapper
 void setDate(java.util.Date aDate)
          Sets member variable mDate
 void setDouble(java.lang.Double aDouble)
          Sets member variable mDouble
 void setFloat(java.lang.Float aFloat)
          Sets member variable mFloat
 void setInteger(java.lang.Integer aInteger)
          Sets member variable mInteger
 void setLong(java.lang.Long aLong)
          Sets member variable mLong
 void setShort(java.lang.Short aShort)
          Sets member variable mShort
 void setString(java.lang.String aString)
          Sets member variable mString
 void setStrings(StringArrayWrapper aStringArrayWrapper)
          Sets member variable mSAWrapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mSupportedTypes

public static final java.util.List mSupportedTypes
An ArrayList holding the supported types


TYPE_STRING

public static final java.lang.String TYPE_STRING
The key name passed to the getObject(String) method that will return the inner String object.

See Also:
Constant Field Values

TYPE_DATE

public static final java.lang.String TYPE_DATE
The key name passed to the getObject(String) method that will return the inner Date object.

See Also:
Constant Field Values

TYPE_BOOLEAN

public static final java.lang.String TYPE_BOOLEAN
The key name passed to the getObject(String) method that will return the inner Boolean object.

See Also:
Constant Field Values

TYPE_INTEGER

public static final java.lang.String TYPE_INTEGER
The key name passed to the getObject(String) method that will return the inner Integer object.

See Also:
Constant Field Values

TYPE_LONG

public static final java.lang.String TYPE_LONG
The key name passed to the getObject(String) method that will return the inner Long object.

See Also:
Constant Field Values

TYPE_DOUBLE

public static final java.lang.String TYPE_DOUBLE
The key name passed to the getObject(String) method that will return the inner Double object.

See Also:
Constant Field Values

TYPE_FLOAT

public static final java.lang.String TYPE_FLOAT
The key name passed to the getObject(String) method that will return the inner Float object.

See Also:
Constant Field Values

TYPE_BIGDECIMAL

public static final java.lang.String TYPE_BIGDECIMAL
The key name passed to the getObject(String) method that will return the inner BigDecimal object.

See Also:
Constant Field Values

TYPE_BYTE

public static final java.lang.String TYPE_BYTE
The key name passed to the getObject(String) method that will return the inner Byte object.

See Also:
Constant Field Values

TYPE_SHORT

public static final java.lang.String TYPE_SHORT
The key name passed to the getObject(String) method that will return the inner Short object.

See Also:
Constant Field Values

TYPE_CHAR

public static final java.lang.String TYPE_CHAR
The key name passed to the getObject(String) method that will return the inner Character object.

See Also:
Constant Field Values

TYPE_STRINGS

public static final java.lang.String TYPE_STRINGS
The key name passed to the getObject(String) method that will return the inner StringArrayWrapper object.

See Also:
Constant Field Values

TYPE_CHARS

public static final java.lang.String TYPE_CHARS
The key name passed to the getObject(String) method that will return the inner CharArrayWrapper object.

See Also:
Constant Field Values

TYPE_BYTES

public static final java.lang.String TYPE_BYTES
The key name passed to the getObject(String) method that will return the inner ByteArrayWrapper object.

See Also:
Constant Field Values
Constructor Detail

TypeWrapper

public TypeWrapper()
Class constructor

Method Detail

isSupported

public static boolean isSupported(java.lang.String aType)
Checks whether a type is supported by the FC

Parameters:
aType - type of parameter
Returns:
true if the type is supported

getString

public java.lang.String getString()
This method returns String representation of the member variable

Returns:
String

setString

public void setString(java.lang.String aString)
Sets member variable mString

Parameters:
aString - String

getDate

public java.util.Date getDate()
This method returns Date representation of the member variable

Returns:
Date

setDate

public void setDate(java.util.Date aDate)
Sets member variable mDate

Parameters:
aDate - Date

getBoolean

public java.lang.Boolean getBoolean()
This method returns Boolean representation of the member variable

Returns:
Boolean

setBoolean

public void setBoolean(java.lang.Boolean aBoolean)
Sets member variable mBooolean

Parameters:
aBoolean - Boolean

getInteger

public java.lang.Integer getInteger()
This method returns Integer representation of the member variable

Returns:
Integer

setInteger

public void setInteger(java.lang.Integer aInteger)
Sets member variable mInteger

Parameters:
aInteger - Integer

getLong

public java.lang.Long getLong()
This method returns Long representation of the member variable

Returns:
Long

setLong

public void setLong(java.lang.Long aLong)
Sets member variable mLong

Parameters:
aLong - Long

getDouble

public java.lang.Double getDouble()
This method returns Double representation of the member variable

Returns:
Double

setDouble

public void setDouble(java.lang.Double aDouble)
Sets member variable mDouble

Parameters:
aDouble - Double

getFloat

public java.lang.Float getFloat()
This method returns Float representation of the member variable

Returns:
Float

setFloat

public void setFloat(java.lang.Float aFloat)
Sets member variable mFloat

Parameters:
aFloat - Float

getBigDecimal

public java.math.BigDecimal getBigDecimal()
This method returns BigDecimal representation of the member variable

Returns:
BigDecimal

setBigDecimal

public void setBigDecimal(java.math.BigDecimal aBigDecimal)
Sets member variable mBigDecimal

Parameters:
aBigDecimal - BigDecimal

getByte

public java.lang.Byte getByte()
This method returns Byte representation of the member variable

Returns:
Byte

setByte

public void setByte(java.lang.Byte aByte)
Sets member variable mByte

Parameters:
aByte - Byte

getShort

public java.lang.Short getShort()
This method returns Short representation of the member variable

Returns:
Short

setShort

public void setShort(java.lang.Short aShort)
Sets member variable mShort

Parameters:
aShort - Short

getCharacter

public java.lang.Character getCharacter()
This method returns Character representation of the member variable

Returns:
Character

setCharacter

public void setCharacter(java.lang.Character aChar)
Sets member variable mChar

Parameters:
aChar - Character

getStrings

public StringArrayWrapper getStrings()
This method returns StringArrayWrapper representation of the member variable

Returns:
StringArrayWrapper

setStrings

public void setStrings(StringArrayWrapper aStringArrayWrapper)
Sets member variable mSAWrapper

Parameters:
aStringArrayWrapper - StringArrayWrapper

getChars

public CharArrayWrapper getChars()
This method returns CharArrayWrapper representation of the member variable

Returns:
CharArrayWrapper

setChars

public void setChars(CharArrayWrapper aCharArrayWrapper)
Sets member variable mCAWrapper

Parameters:
aCharArrayWrapper - CharArrayWrapper

getBytes

public ByteArrayWrapper getBytes()
This method returns ByteArrayWrapper representation of the member variable

Returns:
ByteArrayWrapper

setBytes

public void setBytes(ByteArrayWrapper aByteArrayWrapper)
Sets member variable mBAWrapper

Parameters:
aByteArrayWrapper - ByteArrayWrapper

getObject

public java.lang.Object getObject(java.lang.String aType)
The method accepts a String name of the specified type and returns an object of this type if it is supported , else it returns null

Parameters:
aType - the name of the Type
Returns:
the actual object, or null if the key name is not recognized.
See Also:
TYPE_STRINGS, TYPE_BIGDECIMAL, TYPE_BOOLEAN, TYPE_BYTE, TYPE_BYTES, TYPE_CHAR, TYPE_CHARS, TYPE_DATE, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INTEGER, TYPE_LONG, TYPE_SHORT, TYPE_STRINGS