Interface FieldMetaData
- All Known Implementing Classes:
- CompositeFieldMetaData,- ElementaryFieldMetaData
public interface FieldMetaData
Purpose:  This interface defines behavior for a field meta data be they elementary or
 composite.  This allows reference to either type field indiscriminatly.  It also defines some
 statics for use in the type attribute of field meta data.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Method SummaryModifier and TypeMethodDescriptiondeepCopy()this method returns an new instance with the same valuesbooleanthis method returns true if the array size depends on another fieldextractValueFromArray(byte[] recordData) this method will extract the field's value from a byte arrayintthis method returns the array sizeintthis method returns the decimal position indexthis method returns the name of the dependent field namethis method returns the field that is redefinedgetName()this method will return the name of the fieldintthis method returns the offset, in bytes, of the field in the recordthis method will return the associated recordintgetSize()this method will return the size in bytes of the fieldintgetType()this method returns the type of the fieldbooleanthis method returns true is the field has a preset decimal positionbooleanisArray()this method returns true if this field is an arraybooleanthis method returns true if the field is composite, false otherwisebooleanthis method sets whether this is a field redefine or notbooleanisSigned()this method returns true if the field is signedvoidsetArraySize(int newSize) this method sets the array size for the fieldvoidsetDecimalPosition(int newPosition) this method sets the decimal position to the new indexvoidsetDependentFieldName(String fieldName) this method sets the dependent field namevoidsetFieldRedefined(FieldMetaData field) this method sets the redefined fieldvoidsetIsFieldRedefine(boolean status) this method sets the boolean for field redefine to truevoidsetIsSigned(boolean signed) this method sets the signed attribute for the fieldvoidthis method will set the name of the fieldvoidsetOffset(int offset) this method sets the offset of the fieldvoidsetRecord(RecordMetaData newRecord) this method will set the assoicated recordvoidsetSize(int size) this method will set the size of the fieldvoidsetType(int type) this method sets the type of the fieldvoidwriteOnArray(CobolRow row, byte[] recordData) this method will write itself on the given byte array from the data in the rowvoidwriteOnRow(CobolRow row, byte[] recordData) this method will write itself on the give row extracting the data from the given byte array
- 
Field Details- 
NUMERICstatic final int NUMERIC- See Also:
 
- 
ALPHA_NUMERICstatic final int ALPHA_NUMERIC- See Also:
 
- 
COMPOSITEstatic final int COMPOSITE- See Also:
 
- 
ALPHABETICstatic final int ALPHABETIC- See Also:
 
- 
BINARYstatic final int BINARY- See Also:
 
- 
MANTISSAstatic final int MANTISSA- See Also:
 
- 
PACKED_DECIMALstatic final int PACKED_DECIMAL- See Also:
 
- 
VOIDstatic final int VOID- See Also:
 
 
- 
- 
Method Details- 
deepCopyFieldMetaData deepCopy()this method returns an new instance with the same values
- 
isSignedboolean isSigned()this method returns true if the field is signed
- 
setIsSignedvoid setIsSigned(boolean signed) this method sets the signed attribute for the field
- 
getNameString getName()this method will return the name of the field
- 
setNamethis method will set the name of the field
- 
getRecordRecordMetaData getRecord()this method will return the associated record
- 
setRecordthis method will set the assoicated record
- 
getSizeint getSize()this method will return the size in bytes of the field
- 
setSizevoid setSize(int size) this method will set the size of the field
- 
isCompositeboolean isComposite()this method returns true if the field is composite, false otherwise
- 
getOffsetint getOffset()this method returns the offset, in bytes, of the field in the record
- 
setOffsetvoid setOffset(int offset) this method sets the offset of the field
- 
getTypeint getType()this method returns the type of the field
- 
setTypevoid setType(int type) this method sets the type of the field
- 
isFieldRedefineboolean isFieldRedefine()this method sets whether this is a field redefine or not
- 
setIsFieldRedefinevoid setIsFieldRedefine(boolean status) this method sets the boolean for field redefine to true
- 
setFieldRedefinedthis method sets the redefined field
- 
getFieldRedefinedFieldMetaData getFieldRedefined()this method returns the field that is redefined
- 
hasDecimalboolean hasDecimal()this method returns true is the field has a preset decimal position
- 
getDecimalPositionint getDecimalPosition()this method returns the decimal position index
- 
setDecimalPositionvoid setDecimalPosition(int newPosition) this method sets the decimal position to the new index
- 
isArrayboolean isArray()this method returns true if this field is an array
- 
getArraySizeint getArraySize()this method returns the array size
- 
setArraySizevoid setArraySize(int newSize) this method sets the array size for the field
- 
dependsOnboolean dependsOn()this method returns true if the array size depends on another field
- 
getDependentFieldNameString getDependentFieldName()this method returns the name of the dependent field name
- 
setDependentFieldNamethis method sets the dependent field name
- 
extractValueFromArraythis method will extract the field's value from a byte array
- 
writeOnRowthis method will write itself on the give row extracting the data from the given byte array
- 
writeOnArraythis method will write itself on the given byte array from the data in the row
 
-