net.sf.cb2java.copybook
Class Decimal

java.lang.Object
  extended bynet.sf.cb2java.copybook.Element
      extended bynet.sf.cb2java.copybook.Leaf
          extended bynet.sf.cb2java.copybook.Numeric
              extended bynet.sf.cb2java.copybook.Decimal

public class Decimal
extends Numeric

class that represents decimal (zoned) data types

Author:
James Watson

Method Summary
 int digits()
           
 byte[] toBytes(java.lang.Object data)
          converts the supplied data to bytes
 
Methods inherited from class net.sf.cb2java.copybook.Numeric
createEx, createEx, decimalPlaces, getChildren, getFormatObject, getLength, getUnscaled, getValue, signed, validate
 
Methods inherited from class net.sf.cb2java.copybook.Element
getBytes, getLevel, getName, getOccurs, getPosition, getString, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toBytes

public byte[] toBytes(java.lang.Object data)
Description copied from class: Element
converts the supplied data to bytes

Specified by:
toBytes in class Element
Parameters:
data - the data to convert to bytes
Returns:
the bytes for the data

digits

public int digits()
Specified by:
digits in class Numeric