net.sf.cb2java.copybook.data
Class NumericData

java.lang.Object
  extended bynet.sf.cb2java.copybook.data.Data
      extended bynet.sf.cb2java.copybook.data.ValueData
          extended bynet.sf.cb2java.copybook.data.NumericData
Direct Known Subclasses:
DecimalData, IntegerData

public abstract class NumericData
extends ValueData


Method Summary
 java.lang.String toString()
           
protected  java.lang.Object translate(java.lang.String data)
          Converts the String to the underlying Data type's 'natural' type.
 
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, getValue, setValue, setValue, setValueImpl, validate, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Specified by:
toString in class ValueData

translate

protected java.lang.Object translate(java.lang.String data)
Description copied from class: Data
Converts the String to the underlying Data type's 'natural' type. The String must be understood by the data type.

Specified by:
translate in class Data
Parameters:
data - the string to use to set this data's value
Returns:
an instance of the Data type's 'natural' type