public class CobolDatatypeFactory extends DatatypeFactory
DatatypeFactory
with COBOL Field
related factory methods.
Constructor and Description |
---|
CobolDatatypeFactory() |
Modifier and Type | Method and Description |
---|---|
BinaryAsBigDecimalField |
getBinaryAsBigDecimalField(int precision,
int scale,
boolean signed)
Construct and return a BinaryAsBigDecimalField, advancing the current offset by its byte length.
|
BinaryAsBigIntegerField |
getBinaryAsBigIntegerField(int precision,
int scale,
boolean signed)
Construct and return a BinaryAsBigIntegerField, advancing the current offset by its byte length.
|
BinaryAsIntField |
getBinaryAsIntField(int precision,
boolean signed)
Construct and return a BinaryAsIntField, advancing the current offset by its byte length.
|
BinaryAsLongField |
getBinaryAsLongField(int precision,
boolean signed)
Construct and return a BinaryAsLongField, advancing the current offset by its byte length.
|
Field |
getBinaryField(int precision,
int scale,
boolean signed,
boolean comp5)
Construct and return a BinaryField, advancing the current offset by its byte length.
|
Field |
getExternalDecimalField(int precision,
int scale,
boolean signed,
boolean signTailing,
boolean signExternal,
boolean blankWhenZero)
Construct and return a ExternalDecimalAs<*>Field, advancing the current offset by its byte length.
|
ExternalFloatField |
getExternalFloatField(int precision,
int scale,
boolean showMantissaPlusSign,
boolean showExponentPlusSign,
boolean impliedDecimalPoint)
Construct and return a FloatDisplayField, advancing the current offset by its byte length.
|
IbmDoubleField |
getIbmDoubleField()
Construct and return an IbmDoubleField (hex floating point COMP-2), advancing the current offset by its byte length.
|
IbmFloatField |
getIbmFloatField()
Construct and return an IbmFloatField (hex floating point COMP-1), advancing the
current offset by its byte length.
|
PackedDecimalAsBigDecimalField |
getPackedDecimalAsBigDecimalField(int precision,
int scale,
boolean signed)
Construct and return a PackedDecimalAsBigDecimalField, advancing the current offset by its byte length.
|
PackedDecimalAsBigIntegerField |
getPackedDecimalAsBigIntegerField(int precision,
int scale,
boolean signed)
Construct and return a PackedDecimalAsBigIntegerField, advancing the current offset by its byte length.
|
PackedDecimalAsIntField |
getPackedDecimalAsIntField(int precision,
boolean signed)
Construct and return a PackedDecimalAsIntField, advancing the current offset by its byte length.
|
PackedDecimalAsLongField |
getPackedDecimalAsLongField(int precision,
boolean signed)
Construct and return a PackedDecimalAsLongField, advancing the current offset by its byte length.
|
Field |
getPackedDecimalField(int precision,
int scale,
boolean signed)
Construct and return a PackedDecimalAs<*>Field, advancing the current offset by its byte length.
|
getByteArrayField, getExternalDecimalAsBigDecimalField, getExternalDecimalAsBigDecimalField, getExternalDecimalAsBigIntegerField, getExternalDecimalAsBigIntegerField, getExternalDecimalAsIntField, getExternalDecimalAsIntField, getExternalDecimalAsLongField, getExternalDecimalAsLongField, getMaximumOffset, getOffset, getStringEncoding, getStringField, getStringField, getStringField, getStringField, getStringField, getStringTrimDefault, incrementOffset, popOffset, pushOffset, setOffset, setStringEncoding, setStringTrimDefault
public BinaryAsLongField getBinaryAsLongField(int precision, boolean signed)
precision
- the number of decimal digits of precisionsigned
- true if the value is signedpublic BinaryAsIntField getBinaryAsIntField(int precision, boolean signed)
precision
- the number of decimal digits of precisionsigned
- true if the value is signedpublic BinaryAsBigDecimalField getBinaryAsBigDecimalField(int precision, int scale, boolean signed)
precision
- the number of decimal digits of precisionscale
- the number of implied decimal digits in the
fractional part of the fieldsigned
- true if the value is signedpublic BinaryAsBigIntegerField getBinaryAsBigIntegerField(int precision, int scale, boolean signed)
precision
- the number of decimal digits of precisionscale
- a negative integer specifying the power of the numbersigned
- true if the value is signedpublic Field getBinaryField(int precision, int scale, boolean signed, boolean comp5)
precision
- the number of decimal digits of precisionscale
- the number of implied decimal digits in the
fractional part of the fieldcomp5
- true if the entire bit range is to be allowedpublic Field getExternalDecimalField(int precision, int scale, boolean signed, boolean signTailing, boolean signExternal, boolean blankWhenZero)
precision
- the number of decimal digits of precisionscale
- the number of implied decimal digits in the
fractional part of the fieldsigned
- boolean true if the value is signedsignTailing
- true if the sign is stored at the end of the fieldsignExternal
- true if the sign is stored in a separate byteblankWhenZero
- true if the field is all spaces when zeroExternalDecimalAsIntField
,
ExternalDecimalAsLongField
,
ExternalDecimalAsBigIntegerField
,
ExternalDecimalAsBigDecimalField
public ExternalFloatField getExternalFloatField(int precision, int scale, boolean showMantissaPlusSign, boolean showExponentPlusSign, boolean impliedDecimalPoint)
precision
- the number of decimal digits of precisionscale
- the number of implied decimal digits in the
fractional part of the fieldshowMantissaPlusSign
- true if a plus sign is to be displayed for positive mantissa valuesshowExponentPlusSign
- true if a plus sign is to be displayed for positive exponent valuesimpliedDecimalPoint
- true if the decimal point is implied.public Field getPackedDecimalField(int precision, int scale, boolean signed)
precision
- the number of decimal digits of precisionscale
- the number of implied decimal digits in the
fractional part of the fieldsigned
- true if the value is signedjava.lang.IllegalArgumentException
- if length implies a precision > 31 digits.PackedDecimalAsIntField
,
PackedDecimalAsLongField
,
PackedDecimalAsBigIntegerField
,
PackedDecimalAsBigDecimalField
public PackedDecimalAsBigDecimalField getPackedDecimalAsBigDecimalField(int precision, int scale, boolean signed)
precision
- the number of decimal digits of precisionscale
- the number of implied decimal digits in the
fractional part of the fieldsigned
- boolean true if the value is signedPackedDecimalAsBigDecimalField.PackedDecimalAsBigDecimalField(int, int, int, boolean)
public PackedDecimalAsBigIntegerField getPackedDecimalAsBigIntegerField(int precision, int scale, boolean signed)
precision
- the number of decimal digits of precisionscale
- the number of implied decimal digits in the
fractional part of the fieldsigned
- boolean true if the value is signedPackedDecimalAsBigIntegerField.PackedDecimalAsBigIntegerField(int, int, int, boolean)
public PackedDecimalAsIntField getPackedDecimalAsIntField(int precision, boolean signed)
precision
- the number of decimal digits of precisionsigned
- boolean true if the value is signedPackedDecimalAsIntField.PackedDecimalAsIntField(int, int, boolean)
public PackedDecimalAsLongField getPackedDecimalAsLongField(int precision, boolean signed)
precision
- the number of decimal digits of precisionsigned
- boolean true if the value is signedPackedDecimalAsLongField.PackedDecimalAsLongField(int, int, boolean)
public IbmFloatField getIbmFloatField()
public IbmDoubleField getIbmDoubleField()