Version: 1.1

org.apache.tools.ant.taskdefs.optional.javarec
Class MVSRecordAttributes

java.lang.Object
  |
  +--com.ibm.ivj.eab.record.cobol.CobolRecordAttributes
        |
        +--org.apache.tools.ant.taskdefs.optional.javarec.MVSRecordAttributes
All Implemented Interfaces:
java.lang.Cloneable, com.ibm.record.IRecordAttributes, java.io.Serializable

public class MVSRecordAttributes
extends com.ibm.ivj.eab.record.cobol.CobolRecordAttributes

The purpose of this class is to override the constructors of the superclass, CobolRecordAttributes. This is necessary for some records that are generated by build scripts. By default, their constructors set the record attributes to the wrong endian, floating point and codepage types. The constructors of this class ignore the (presumably wrong) input parameters passed to it and populate the record attributes to those matching an MVS mainframe environment.

Version:
$Revision: 1.1 $
Author:
Paul Glezen
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_CODEPAGE
          The default code page - 037 for MVS.
static int DEFAULT_COMPILER
          The default compiler - CobolRecordAttributes.VACOBOL.
static int DEFAULT_ENDIAN
          The default integer endian for the target platform - IRecordAttributes.BIGENDIAN.
static int DEFAULT_FLOATING_POINT
          The default floating point format on the target platform - IRecordAttributes.IBMFLOATINGPOINTFORMAT.
static int DEFAULT_MACHINE_TYPE
          The default target machine type - CobolRecordAttributes.MVS.
static int DEFAULT_REMOTE_ENDIAN
          The default integer endian for DFHCNV macros on the target platform - IRecordAttributes.BIGENDIAN.
 
Fields inherited from class com.ibm.ivj.eab.record.cobol.CobolRecordAttributes
AIX, BIGENDIAN, COMP, COMP1, COMP2, COMP3, DISPLAY, DISPLAY_NONNUMERIC, DISPLAY_NUMERIC, IBMFLOATINGPOINTFORMAT, IEEEFLOATINGPOINTFORMAT, JAVA_BIGDECIMAL, JAVA_BOOLEAN, JAVA_BYTE, JAVA_CHAR, JAVA_DOUBLE, JAVA_FLOAT, JAVA_INT, JAVA_LONG, JAVA_SHORT, JAVA_STRING, LITTLEENDIAN, MFCOBOL, MVS, MVSCUSTOM, NT, OS2, picFieldLength, SIGN_LEADING, SIGN_LEADING_SEPARATE, SIGN_TRAILING, SIGN_TRAILING_SEPARATE, VACOBOL, VSCOBOL2
 
Constructor Summary
MVSRecordAttributes()
          Invoke the super class constructor using the default constant values defined in this class.
MVSRecordAttributes(java.lang.String codePage, int remoteEndian)
          Invokes MVSRecordAttributes().
MVSRecordAttributes(java.lang.String codepage, int remoteEndian, int endian, int floatingPoint, int machineType, int compiler)
          Invokes MVSRecordAttributes().
 
Methods inherited from class com.ibm.ivj.eab.record.cobol.CobolRecordAttributes
clone, convertCobolToJava, convertFromByteArrayToString, convertFromByteToChar, convertFromByteToDouble, convertFromByteToFloat, convertFromByteToInt, convertFromByteToLong, convertFromByteToShort, convertFromByteToString, convertFromCobol, convertFromStringToByteArray, convertJavaToCobol, convertToByte, convertToByte, convertToByte, convertToByte, convertToByte, convertToByte, convertToByte, convertToCobol, equals, fillBytes, getCodePage, getCompiler, getEndian, getFloatingPointFormat, getMachine, getRemoteIntEndian, setCodePage, setCompiler, setEndian, setFloatingPointFormat, setMachine, setRemoteIntEndian, sizeOfCobol, updateCicsDataDescriptor
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CODEPAGE

public static final java.lang.String DEFAULT_CODEPAGE
The default code page - 037 for MVS.

DEFAULT_ENDIAN

public static final int DEFAULT_ENDIAN
The default integer endian for the target platform - IRecordAttributes.BIGENDIAN.

DEFAULT_REMOTE_ENDIAN

public static final int DEFAULT_REMOTE_ENDIAN
The default integer endian for DFHCNV macros on the target platform - IRecordAttributes.BIGENDIAN.

DEFAULT_FLOATING_POINT

public static final int DEFAULT_FLOATING_POINT
The default floating point format on the target platform - IRecordAttributes.IBMFLOATINGPOINTFORMAT.

DEFAULT_MACHINE_TYPE

public static final int DEFAULT_MACHINE_TYPE
The default target machine type - CobolRecordAttributes.MVS.

DEFAULT_COMPILER

public static final int DEFAULT_COMPILER
The default compiler - CobolRecordAttributes.VACOBOL. This is currently ignored.
Constructor Detail

MVSRecordAttributes

public MVSRecordAttributes()
Invoke the super class constructor using the default constant values defined in this class. These values are tailed to an MVS environment.

MVSRecordAttributes

public MVSRecordAttributes(java.lang.String codePage,
                           int remoteEndian)
Invokes MVSRecordAttributes(). Input parameters are ignored.

MVSRecordAttributes

public MVSRecordAttributes(java.lang.String codepage,
                           int remoteEndian,
                           int endian,
                           int floatingPoint,
                           int machineType,
                           int compiler)
Invokes MVSRecordAttributes(). Input parameters are ignored.

Version: 1.1

Paul Glezen
pglezen@us.ibm.com