IBM Bank Transformation Toolkit Javadoc

com.ibm.btt.format.adapter
Class DataElementReadAdapter

java.lang.Object
  extended by com.ibm.btt.format.adapter.DataElementReadAdapter
All Implemented Interfaces:
ReadAdapter

public class DataElementReadAdapter
extends java.lang.Object
implements ReadAdapter


Field Summary
(package private)  DataElement dataElement
           
 
Constructor Summary
DataElementReadAdapter(DataElement data)
           
 
Method Summary
 java.math.BigDecimal getBigDecimal()
           
 java.math.BigInteger getBigInteger()
           
 boolean getBoolean()
           
 java.lang.Boolean getBooleanObject()
           
 byte getByte()
           
 java.lang.Byte getByteObject()
           
 byte[] getBytes()
           
 java.util.Calendar getCalendar()
           
 ReadAdapter getChildAdapter(int index, boolean isContainer)
          get an Adapter for a data element in an array or a list by the index.
 ReadAdapter getChildAdapter(java.lang.String name, boolean isContainer)
          get an Adapter for a data field by the name.
 java.lang.String getDataName()
           
 java.util.Date getDate()
           
 double getDouble()
           
 java.lang.Double getDoubleObject()
           
 float getFloat()
           
 java.lang.Float getFloatObject()
           
 int getInt()
           
 java.lang.Integer getIntegerObject()
           
 long getLong()
           
 java.lang.Long getLongObject()
           
 java.lang.Object getObject()
           
 short getShort()
           
 java.lang.Short getShortObject()
           
 java.lang.String getString()
           
 boolean isNull()
           
 int size()
          if the Adaptered data element is an array or a list, return the size of it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataElement

DataElement dataElement
Constructor Detail

DataElementReadAdapter

public DataElementReadAdapter(DataElement data)
Method Detail

getBigDecimal

public java.math.BigDecimal getBigDecimal()
                                   throws GetFailedException
Specified by:
getBigDecimal in interface ReadAdapter
Throws:
GetFailedException

getBigInteger

public java.math.BigInteger getBigInteger()
                                   throws GetFailedException
Specified by:
getBigInteger in interface ReadAdapter
Throws:
GetFailedException

getBoolean

public boolean getBoolean()
                   throws GetFailedException
Specified by:
getBoolean in interface ReadAdapter
Throws:
GetFailedException

getBooleanObject

public java.lang.Boolean getBooleanObject()
                                   throws GetFailedException
Specified by:
getBooleanObject in interface ReadAdapter
Throws:
GetFailedException

getByte

public byte getByte()
             throws GetFailedException
Specified by:
getByte in interface ReadAdapter
Throws:
GetFailedException

getByteObject

public java.lang.Byte getByteObject()
                             throws GetFailedException
Specified by:
getByteObject in interface ReadAdapter
Throws:
GetFailedException

getBytes

public byte[] getBytes()
                throws GetFailedException
Specified by:
getBytes in interface ReadAdapter
Throws:
GetFailedException

getCalendar

public java.util.Calendar getCalendar()
                               throws GetFailedException
Specified by:
getCalendar in interface ReadAdapter
Throws:
GetFailedException

getChildAdapter

public ReadAdapter getChildAdapter(java.lang.String name,
                                   boolean isContainer)
                            throws GetFailedException
Description copied from interface: ReadAdapter
get an Adapter for a data field by the name.

Specified by:
getChildAdapter in interface ReadAdapter
Returns:
Throws:
GetFailedException

getChildAdapter

public ReadAdapter getChildAdapter(int index,
                                   boolean isContainer)
                            throws GetFailedException
Description copied from interface: ReadAdapter
get an Adapter for a data element in an array or a list by the index.

Specified by:
getChildAdapter in interface ReadAdapter
Returns:
Throws:
GetFailedException

getDataName

public java.lang.String getDataName()
                             throws GetFailedException
Throws:
GetFailedException

getDate

public java.util.Date getDate()
                       throws GetFailedException
Specified by:
getDate in interface ReadAdapter
Throws:
GetFailedException

getDouble

public double getDouble()
                 throws GetFailedException
Specified by:
getDouble in interface ReadAdapter
Throws:
GetFailedException

getDoubleObject

public java.lang.Double getDoubleObject()
                                 throws GetFailedException
Specified by:
getDoubleObject in interface ReadAdapter
Throws:
GetFailedException

getFloat

public float getFloat()
               throws GetFailedException
Specified by:
getFloat in interface ReadAdapter
Throws:
GetFailedException

getFloatObject

public java.lang.Float getFloatObject()
                               throws GetFailedException
Specified by:
getFloatObject in interface ReadAdapter
Throws:
GetFailedException

getInt

public int getInt()
           throws GetFailedException
Specified by:
getInt in interface ReadAdapter
Throws:
GetFailedException

getIntegerObject

public java.lang.Integer getIntegerObject()
                                   throws GetFailedException
Specified by:
getIntegerObject in interface ReadAdapter
Throws:
GetFailedException

getLong

public long getLong()
             throws GetFailedException
Specified by:
getLong in interface ReadAdapter
Throws:
GetFailedException

getLongObject

public java.lang.Long getLongObject()
                             throws GetFailedException
Specified by:
getLongObject in interface ReadAdapter
Throws:
GetFailedException

getObject

public java.lang.Object getObject()
                           throws GetFailedException
Specified by:
getObject in interface ReadAdapter
Throws:
GetFailedException

getShort

public short getShort()
               throws GetFailedException
Specified by:
getShort in interface ReadAdapter
Throws:
GetFailedException

getShortObject

public java.lang.Short getShortObject()
                               throws GetFailedException
Specified by:
getShortObject in interface ReadAdapter
Throws:
GetFailedException

getString

public java.lang.String getString()
                           throws GetFailedException
Specified by:
getString in interface ReadAdapter
Throws:
GetFailedException

isNull

public boolean isNull()
               throws GetFailedException
Specified by:
isNull in interface ReadAdapter
Throws:
GetFailedException

size

public int size()
         throws GetFailedException
Description copied from interface: ReadAdapter
if the Adaptered data element is an array or a list, return the size of it.

Specified by:
size in interface ReadAdapter
Returns:
Throws:
GetFailedException

IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008