net.sf.cb2java.copybook.data
Class IntegerData

java.lang.Object
  extended bynet.sf.cb2java.copybook.data.Data
      extended bynet.sf.cb2java.copybook.data.ValueData
          extended bynet.sf.cb2java.copybook.data.NumericData
              extended bynet.sf.cb2java.copybook.data.IntegerData

public class IntegerData
extends NumericData

class that represents numeric data with no fraction portion

Author:
James Watson

Field Summary
 java.math.BigInteger data
           
 
Constructor Summary
IntegerData(Numeric definition)
           
 
Method Summary
 java.math.BigInteger getBigInteger()
           
 int getInt()
           
 long getLong()
           
 java.lang.Object getValue()
          returns the Object as it's 'natural' Java type
 void setValue(java.math.BigInteger data)
           
 void setValue(long data)
           
 void setValueImpl(java.lang.Object data)
          called by setData after validate is called
 
Methods inherited from class net.sf.cb2java.copybook.data.NumericData
toString, translate
 
Methods inherited from class net.sf.cb2java.copybook.data.ValueData
getChildren, isLeaf, toString
 
Methods inherited from class net.sf.cb2java.copybook.data.Data
getDefinition, getName, setValue, setValue, validate, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

public java.math.BigInteger data
Constructor Detail

IntegerData

public IntegerData(Numeric definition)
Method Detail

getInt

public int getInt()

getLong

public long getLong()

getBigInteger

public java.math.BigInteger getBigInteger()

setValue

public void setValue(long data)

setValueImpl

public void setValueImpl(java.lang.Object data)
Description copied from class: Data
called by setData after validate is called

Specified by:
setValueImpl in class Data
Parameters:
data - the data to set

setValue

public void setValue(java.math.BigInteger data)

getValue

public java.lang.Object getValue()
Description copied from class: Data
returns the Object as it's 'natural' Java type

Specified by:
getValue in class Data