com.ibm.di.fc.castorbind
Class TypeWrapper

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

public class TypeWrapper
extends 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 List mSupportedTypes
          An ArrayList holding the supported types
static String TYPE_BIGDECIMAL
          The key name passed to the getObject(String) method that will return the inner BigDecimal object.
static String TYPE_BOOLEAN
          The key name passed to the getObject(String) method that will return the inner Boolean object.
static String TYPE_BYTE
          The key name passed to the getObject(String) method that will return the inner Byte object.
static String TYPE_BYTES
          The key name passed to the getObject(String) method that will return the inner ByteArrayWrapper object.
static String TYPE_CHAR
          The key name passed to the getObject(String) method that will return the inner Character object.
static String TYPE_CHARS
          The key name passed to the getObject(String) method that will return the inner CharArrayWrapper object.
static String TYPE_DATE
          The key name passed to the getObject(String) method that will return the inner Date object.
static String TYPE_DOUBLE
          The key name passed to the getObject(String) method that will return the inner Double object.
static String TYPE_FLOAT
          The key name passed to the getObject(String) method that will return the inner Float object.
static String TYPE_INTEGER
          The key name passed to the getObject(String) method that will return the inner Integer object.
static String TYPE_LONG
          The key name passed to the getObject(String) method that will return the inner Long object.
static String TYPE_SHORT
          The key name passed to the getObject(String) method that will return the inner Short object.
static String TYPE_STRING
          The key name passed to the getObject(String) method that will return the inner String object.
static 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
 BigDecimal getBigDecimal()
          This method returns BigDecimal representation of the member variable
 Boolean getBoolean()
          This method returns Boolean representation of the member variable
 Byte getByte()
          This method returns Byte representation of the member variable
 ByteArrayWrapper getBytes()
          This method returns ByteArrayWrapper representation of the member variable
 Character getCharacter()
          This method returns Character representation of the member variable
 CharArrayWrapper getChars()
          This method returns CharArrayWrapper representation of the member variable
 Date getDate()
          This method returns Date representation of the member variable
 Double getDouble()
          This method returns Double representation of the member variable
 Float getFloat()
          This method returns Float representation of the member variable
 Integer getInteger()
          This method returns Integer representation of the member variable
 Long getLong()
          This method returns Long representation of the member variable
 Object getObject(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
 Short getShort()
          This method returns Short representation of the member variable
 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(String aType)
          Checks whether a type is supported by the FC
 void setBigDecimal(BigDecimal aBigDecimal)
          Sets member variable mBigDecimal
 void setBoolean(Boolean aBoolean)
          Sets member variable mBooolean
 void setByte(Byte aByte)
          Sets member variable mByte
 void setBytes(ByteArrayWrapper aByteArrayWrapper)
          Sets member variable mBAWrapper
 void setCharacter(Character aChar)
          Sets member variable mChar
 void setChars(CharArrayWrapper aCharArrayWrapper)
          Sets member variable mCAWrapper
 void setDate(Date aDate)
          Sets member variable mDate
 void setDouble(Double aDouble)
          Sets member variable mDouble
 void setFloat(Float aFloat)
          Sets member variable mFloat
 void setInteger(Integer aInteger)
          Sets member variable mInteger
 void setLong(Long aLong)
          Sets member variable mLong
 void setShort(Short aShort)
          Sets member variable mShort
 void setString(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 List mSupportedTypes
An ArrayList holding the supported types


TYPE_STRING

public static final 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 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 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 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 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 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 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 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 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 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 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 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 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 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(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 String getString()
This method returns String representation of the member variable

Returns:
String

setString

public void setString(String aString)
Sets member variable mString

Parameters:
aString - String

getDate

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

Returns:
Date

setDate

public void setDate(Date aDate)
Sets member variable mDate

Parameters:
aDate - Date

getBoolean

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

Returns:
Boolean

setBoolean

public void setBoolean(Boolean aBoolean)
Sets member variable mBooolean

Parameters:
aBoolean - Boolean

getInteger

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

Returns:
Integer

setInteger

public void setInteger(Integer aInteger)
Sets member variable mInteger

Parameters:
aInteger - Integer

getLong

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

Returns:
Long

setLong

public void setLong(Long aLong)
Sets member variable mLong

Parameters:
aLong - Long

getDouble

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

Returns:
Double

setDouble

public void setDouble(Double aDouble)
Sets member variable mDouble

Parameters:
aDouble - Double

getFloat

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

Returns:
Float

setFloat

public void setFloat(Float aFloat)
Sets member variable mFloat

Parameters:
aFloat - Float

getBigDecimal

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

Returns:
BigDecimal

setBigDecimal

public void setBigDecimal(BigDecimal aBigDecimal)
Sets member variable mBigDecimal

Parameters:
aBigDecimal - BigDecimal

getByte

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

Returns:
Byte

setByte

public void setByte(Byte aByte)
Sets member variable mByte

Parameters:
aByte - Byte

getShort

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

Returns:
Short

setShort

public void setShort(Short aShort)
Sets member variable mShort

Parameters:
aShort - Short

getCharacter

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

Returns:
Character

setCharacter

public void setCharacter(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 Object getObject(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