|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.di.fc.castorbind.TypeWrapper
public class TypeWrapper
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 |
---|
public static final List mSupportedTypes
ArrayList
holding the supported types
public static final String TYPE_STRING
getObject(String)
method that will
return the inner String
object.
public static final String TYPE_DATE
getObject(String)
method that will
return the inner Date
object.
public static final String TYPE_BOOLEAN
getObject(String)
method that will
return the inner Boolean
object.
public static final String TYPE_INTEGER
getObject(String)
method that will
return the inner Integer
object.
public static final String TYPE_LONG
getObject(String)
method that will
return the inner Long
object.
public static final String TYPE_DOUBLE
getObject(String)
method that will
return the inner Double
object.
public static final String TYPE_FLOAT
getObject(String)
method that will
return the inner Float
object.
public static final String TYPE_BIGDECIMAL
getObject(String)
method that will
return the inner BigDecimal
object.
public static final String TYPE_BYTE
getObject(String)
method that will
return the inner Byte
object.
public static final String TYPE_SHORT
getObject(String)
method that will
return the inner Short
object.
public static final String TYPE_CHAR
getObject(String)
method that will
return the inner Character
object.
public static final String TYPE_STRINGS
getObject(String)
method that will
return the inner StringArrayWrapper
object.
public static final String TYPE_CHARS
getObject(String)
method that will
return the inner CharArrayWrapper
object.
public static final String TYPE_BYTES
getObject(String)
method that will
return the inner ByteArrayWrapper
object.
Constructor Detail |
---|
public TypeWrapper()
Method Detail |
---|
public static boolean isSupported(String aType)
aType
- type of parameter
public String getString()
String
representation of the member variable
public void setString(String aString)
aString
- String
public Date getDate()
Date
representation of the member variable
public void setDate(Date aDate)
aDate
- Date
public Boolean getBoolean()
Boolean
representation of the member variable
public void setBoolean(Boolean aBoolean)
aBoolean
- Boolean
public Integer getInteger()
Integer
representation of the member variable
public void setInteger(Integer aInteger)
aInteger
- Integer
public Long getLong()
Long
representation of the member variable
public void setLong(Long aLong)
aLong
- Long
public Double getDouble()
Double
representation of the member variable
public void setDouble(Double aDouble)
aDouble
- Double
public Float getFloat()
Float
representation of the member variable
public void setFloat(Float aFloat)
aFloat
- Float
public BigDecimal getBigDecimal()
BigDecimal
representation of the member
variable
public void setBigDecimal(BigDecimal aBigDecimal)
aBigDecimal
- BigDecimal
public Byte getByte()
Byte
representation of the member variable
public void setByte(Byte aByte)
aByte
- Byte
public Short getShort()
Short
representation of the member variable
public void setShort(Short aShort)
aShort
- Short
public Character getCharacter()
Character
representation of the member
variable
public void setCharacter(Character aChar)
aChar
- Character
public StringArrayWrapper getStrings()
StringArrayWrapper
representation of the
member variable
public void setStrings(StringArrayWrapper aStringArrayWrapper)
aStringArrayWrapper
- StringArrayWrapper
public CharArrayWrapper getChars()
CharArrayWrapper
representation of the member
variable
public void setChars(CharArrayWrapper aCharArrayWrapper)
aCharArrayWrapper
- CharArrayWrapper
public ByteArrayWrapper getBytes()
ByteArrayWrapper
representation of the member
variable
public void setBytes(ByteArrayWrapper aByteArrayWrapper)
aByteArrayWrapper
- ByteArrayWrapper
public Object getObject(String aType)
null
aType
- the name of the Type
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |