@Test public void testAssignMetadataTo() throws IOException, IllegalCeosFormatException { final FilePointerRecord record = new FilePointerRecord(_reader, _prefix.length()); final MetadataElement elem = new MetadataElement("elem"); record.assignMetadataTo(elem, "suffix"); assertEquals(0, elem.getNumAttributes()); assertEquals(1, elem.getNumElements()); final MetadataElement recordRoot = elem.getElement("FilePointerRecord suffix"); assertNotNull(recordRoot); assertMetadata(recordRoot); assertEquals(0, recordRoot.getNumElements()); assertEquals(21, recordRoot.getNumAttributes()); }
@Override public void assignMetadataTo(final MetadataElement root, final String suffix) { final MetadataElement elem = createMetadataElement("FilePointerRecord", suffix); root.addElement(elem); super.assignMetadataTo(elem, null); elem.setAttributeString("Code character", _codeCharacter); elem.setAttributeInt("File pointer number", _filePointerNumber); elem.setAttributeString("File ID", _fileID); elem.setAttributeString("File class", _fileClass); elem.setAttributeString("File class code", _fileClassCode); elem.setAttributeString("File datatype", _fileDataType); elem.setAttributeString("File datatype code", _fileDataTypeCode); elem.setAttributeInt("Number of records", _numberOfRecords); elem.setAttributeInt("First record length", _firstRecordLength); elem.setAttributeInt("Max record length", _maxRecordLength); elem.setAttributeString("Record lengthtype", _recordLengthType); elem.setAttributeString("Record lengthtype code", _recordLengthTypeCode); elem.setAttributeInt("First record volume numer", _firstRecordVolumeNumber); elem.setAttributeInt("Final record volume number", _finalRecordVolumeNumber); elem.setAttributeInt("First record number of referenced file", _firstRecordNumberOfReferencedFile); }
FilePointerRecord extends BaseRecord { @Override public void assignMetadataTo(final MetadataElement root, final String suffix) { final MetadataElement elem = createMetadataElement("FilePointerRecord", suffix); root.addElement(elem); super.assignMetadataTo(elem, null); elem.setAttributeString("Code character", _codeCharacter); elem.setAttributeInt("File pointer number", _filePointerNumber); elem.setAttributeString("File ID", _fileID); elem.setAttributeString("File class", _fileClass); elem.setAttributeString("File class code", _fileClassCode); elem.setAttributeString("File datatype", _fileDataType); elem.setAttributeString("File datatype code", _fileDataTypeCode); elem.setAttributeInt("Number of records", _numberOfRecords); elem.setAttributeInt("First record length", _firstRecordLength); elem.setAttributeInt("Max record length", _maxRecordLength); elem.setAttributeString("Record lengthtype", _recordLengthType); elem.setAttributeString("Record lengthtype code", _recordLengthTypeCode); elem.setAttributeInt("First record volume numer", _firstRecordVolumeNumber); elem.setAttributeInt("Final record volume number", _finalRecordVolumeNumber); elem.setAttributeInt("First record number of referenced file", _firstRecordNumberOfReferencedFile); } }
FilePointerRecord extends BaseRecord { @Override public void assignMetadataTo(final MetadataElement root, final String suffix) { final MetadataElement elem = createMetadataElement("FilePointerRecord", suffix); root.addElement(elem); super.assignMetadataTo(elem, null); elem.setAttributeString("Code character", _codeCharacter); elem.setAttributeInt("File pointer number", _filePointerNumber); elem.setAttributeString("File ID", _fileID); elem.setAttributeString("File class", _fileClass); elem.setAttributeString("File class code", _fileClassCode); elem.setAttributeString("File datatype", _fileDataType); elem.setAttributeString("File datatype code", _fileDataTypeCode); elem.setAttributeInt("Number of records", _numberOfRecords); elem.setAttributeInt("First record length", _firstRecordLength); elem.setAttributeInt("Max record length", _maxRecordLength); elem.setAttributeString("Record lengthtype", _recordLengthType); elem.setAttributeString("Record lengthtype code", _recordLengthTypeCode); elem.setAttributeInt("First record volume numer", _firstRecordVolumeNumber); elem.setAttributeInt("Final record volume number", _finalRecordVolumeNumber); elem.setAttributeInt("First record number of referenced file", _firstRecordNumberOfReferencedFile); } FilePointerRecord(final CeosFileReader reader);  FilePointerRecord(final CeosFileReader reader, final long startPos); }
FilePointerRecord extends BaseRecord { @Override public void assignMetadataTo(final MetadataElement root, final String suffix) { final MetadataElement elem = createMetadataElement("FilePointerRecord", suffix); root.addElement(elem); super.assignMetadataTo(elem, null); elem.setAttributeString("Code character", _codeCharacter); elem.setAttributeInt("File pointer number", _filePointerNumber); elem.setAttributeString("File ID", _fileID); elem.setAttributeString("File class", _fileClass); elem.setAttributeString("File class code", _fileClassCode); elem.setAttributeString("File datatype", _fileDataType); elem.setAttributeString("File datatype code", _fileDataTypeCode); elem.setAttributeInt("Number of records", _numberOfRecords); elem.setAttributeInt("First record length", _firstRecordLength); elem.setAttributeInt("Max record length", _maxRecordLength); elem.setAttributeString("Record lengthtype", _recordLengthType); elem.setAttributeString("Record lengthtype code", _recordLengthTypeCode); elem.setAttributeInt("First record volume numer", _firstRecordVolumeNumber); elem.setAttributeInt("Final record volume number", _finalRecordVolumeNumber); elem.setAttributeInt("First record number of referenced file", _firstRecordNumberOfReferencedFile); } FilePointerRecord(final CeosFileReader reader);  FilePointerRecord(final CeosFileReader reader, final long startPos); String getCodeCharacter(); String getFileClass(); String getFileClassCode(); String getFileDataType(); String getFileDataTypeCode(); String getFileID(); int getFilePointerNumber(); int getFirstRecordLength(); int getMaxRecordLength(); int getNumberOfRecords(); String getRecordLengthType(); String getRecordLengthTypeCode(); boolean isImageFileRecord(); int getFirstRecordVolumeNumber(); int getFinalRecordVolumeNumber(); int getFirstRecordNumberOfReferencedFile(); @Override void assignMetadataTo(final MetadataElement root, final String suffix); }
FilePointerRecord extends BaseRecord { @Override public void assignMetadataTo(final MetadataElement root, final String suffix) { final MetadataElement elem = createMetadataElement("FilePointerRecord", suffix); root.addElement(elem); super.assignMetadataTo(elem, null); elem.setAttributeString("Code character", _codeCharacter); elem.setAttributeInt("File pointer number", _filePointerNumber); elem.setAttributeString("File ID", _fileID); elem.setAttributeString("File class", _fileClass); elem.setAttributeString("File class code", _fileClassCode); elem.setAttributeString("File datatype", _fileDataType); elem.setAttributeString("File datatype code", _fileDataTypeCode); elem.setAttributeInt("Number of records", _numberOfRecords); elem.setAttributeInt("First record length", _firstRecordLength); elem.setAttributeInt("Max record length", _maxRecordLength); elem.setAttributeString("Record lengthtype", _recordLengthType); elem.setAttributeString("Record lengthtype code", _recordLengthTypeCode); elem.setAttributeInt("First record volume numer", _firstRecordVolumeNumber); elem.setAttributeInt("Final record volume number", _finalRecordVolumeNumber); elem.setAttributeInt("First record number of referenced file", _firstRecordNumberOfReferencedFile); } FilePointerRecord(final CeosFileReader reader);  FilePointerRecord(final CeosFileReader reader, final long startPos); String getCodeCharacter(); String getFileClass(); String getFileClassCode(); String getFileDataType(); String getFileDataTypeCode(); String getFileID(); int getFilePointerNumber(); int getFirstRecordLength(); int getMaxRecordLength(); int getNumberOfRecords(); String getRecordLengthType(); String getRecordLengthTypeCode(); boolean isImageFileRecord(); int getFirstRecordVolumeNumber(); int getFinalRecordVolumeNumber(); int getFirstRecordNumberOfReferencedFile(); @Override void assignMetadataTo(final MetadataElement root, final String suffix); static final int RECORD_LENGTH; }