com.microfocus.cobol.lang.internal
Class CobolGroup
java.lang.Object
|
+--com.microfocus.cobol.lang.internal.CobolBytes
|
+--com.microfocus.cobol.lang.internal.CobolField
|
+--com.microfocus.cobol.lang.internal.CobolAlphanumeric
|
+--com.microfocus.cobol.lang.internal.CobolGroup
- public class CobolGroup
- extends CobolAlphanumeric
Fields inherited from class com.microfocus.cobol.lang.internal.CobolField |
descriptor, F_BWZ, F_DBCS, F_EBCDIC, F_IBMCOMP, F_NONE, F_TRUNC, occurs, S_LEADING_INCLUDED, S_LEADING_SEPARATE, S_SIGNED_DEFAULT, S_TRAILING_INCLUDED, S_TRAILING_SEPARATE, S_UNSIGNED, T_ALPHANUMERIC, T_BCD, T_BINARY, T_DISPLAY, T_EDITED_ALPHANUMERIC, T_EDITED_DISPLAY, T_EDITED_FLOAT, T_FLOAT, T_PORTABLE_BINARY, T_UBCD |
Constructor Summary |
CobolGroup(CobolRecord record,
int id,
int flags)
Creates a new Cobol Group data item for the whole of the given record area |
CobolGroup(CobolRecord record,
int id,
int occurs,
int flags)
Creates a new Cobol Group data item for the whole of the given record area |
CobolGroup(CobolRecord record,
int id,
int offset,
int length,
int flags)
Creates a new Cobol Group data item for part of the given record area |
CobolGroup(CobolRecord record,
int id,
int offset,
int length,
int occurs,
int flags)
Creates a new Cobol Group data item for part of the given record area |
Method Summary |
BigDecimal |
getBigDecimal(String name)
|
BigInteger |
getBigInteger(String name)
|
boolean |
getBoolean(String name)
|
byte[] |
getBytesValue(String name)
|
byte |
getByteValue(String name)
|
double |
getDoubleValue(String name)
|
CobolField |
getField(String fieldName)
Returns the Cobol data item object representing the given String fieldname |
float |
getFloatValue(String name)
|
int |
getIntValue(String name)
|
long |
getLongValue(String name)
|
short |
getShortValue(String name)
|
void |
setBigDecimal(String name,
BigDecimal value)
|
void |
setBigInteger(String name,
BigInteger value)
|
void |
setBoolean(String name,
boolean value)
|
void |
setByte(String name,
byte value)
|
void |
setBytes(String name,
byte[] value)
|
void |
setDouble(String name,
double value)
|
void |
setFloat(String name,
float value)
|
void |
setInt(String name,
int value)
|
void |
setLong(String name,
long value)
|
void |
setShort(String name,
short value)
|
void |
setString(String name,
String value)
|
String |
toString(String name)
|
CobolGroup
public CobolGroup(CobolRecord record,
int id,
int occurs,
int flags)
- Creates a new Cobol Group data item for the whole of the given record area
- Parameters:
record
- The record area containing the data itemid
- An identifier for the data item that is unique within the record. Zero if none specifiedoccurs
- The number of array entriesflags
- Additional type information. Valid flags are F_NONE, F_EBCDIC, F_DBCS- See Also:
ICobolType
CobolGroup
public CobolGroup(CobolRecord record,
int id,
int flags)
- Creates a new Cobol Group data item for the whole of the given record area
- Parameters:
record
- The record area containing the data itemid
- An identifier for the data item that is unique within the record. Zero if none specifiedflags
- Additional type information. Valid flags are F_NONE, F_EBCDIC, F_DBCS- See Also:
ICobolType
CobolGroup
public CobolGroup(CobolRecord record,
int id,
int offset,
int length,
int occurs,
int flags)
- Creates a new Cobol Group data item for part of the given record area
- Parameters:
record
- The record area containing the data itemid
- An identifier for the data item that is unique within the record. Zero if none specifiedoffset
- The offset of the group item within the record area. (0 = start)length
- The number of bytes in the group itemoccurs
- The number of array entriesflags
- Additional type information. Valid flags are F_NONE, F_EBCDIC, F_DBCS- See Also:
ICobolType
CobolGroup
public CobolGroup(CobolRecord record,
int id,
int offset,
int length,
int flags)
- Creates a new Cobol Group data item for part of the given record area
- Parameters:
record
- The record area containing the data itemid
- An identifier for the data item that is unique within the record. Zero if none specifiedoffset
- The offset of the group item within the record area. (0 = start)length
- The number of bytes in the group itemflags
- Additional type information. Valid flags are F_NONE, F_EBCDIC, F_DBCS- See Also:
ICobolType
getField
public CobolField getField(String fieldName)
throws CobolRecordException
- Returns the Cobol data item object representing the given String fieldname
- Parameters:
the
- required Cobol field name- Returns:
- the object representing the given Cobol field name
- Throws:
CobolRecordException
- If the field is not found
getBytesValue
public byte[] getBytesValue(String name)
throws CobolRecordException
toString
public String toString(String name)
throws CobolRecordException
setBytes
public void setBytes(String name,
byte[] value)
throws CobolRecordException
setString
public void setString(String name,
String value)
throws CobolRecordException
getByteValue
public byte getByteValue(String name)
throws CobolRecordException
getShortValue
public short getShortValue(String name)
throws CobolRecordException
getIntValue
public int getIntValue(String name)
throws CobolRecordException
getLongValue
public long getLongValue(String name)
throws CobolRecordException
getFloatValue
public float getFloatValue(String name)
throws CobolRecordException
getDoubleValue
public double getDoubleValue(String name)
throws CobolRecordException
getBigDecimal
public BigDecimal getBigDecimal(String name)
throws CobolRecordException
getBigInteger
public BigInteger getBigInteger(String name)
throws CobolRecordException
setByte
public void setByte(String name,
byte value)
throws CobolRecordException
setShort
public void setShort(String name,
short value)
throws CobolRecordException
setInt
public void setInt(String name,
int value)
throws CobolRecordException
setLong
public void setLong(String name,
long value)
throws CobolRecordException
setFloat
public void setFloat(String name,
float value)
throws CobolRecordException
setDouble
public void setDouble(String name,
double value)
throws CobolRecordException
setBigDecimal
public void setBigDecimal(String name,
BigDecimal value)
throws CobolRecordException
setBigInteger
public void setBigInteger(String name,
BigInteger value)
throws CobolRecordException
getBoolean
public boolean getBoolean(String name)
throws CobolRecordException
setBoolean
public void setBoolean(String name,
boolean value)
throws CobolRecordException
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.