@Test public void testAssignMetadataTo() throws IOException, IllegalCeosFormatException { final BaseRecord record = new BaseRecord(_reader, _prefix.length()); final MetadataElement elem = new MetadataElement("elem"); record.assignMetadataTo(elem, null); assertMetadata(elem); assertEquals(0, elem.getNumElements()); assertEquals(6, elem.getNumAttributes()); }
public void assignMetadataTo(final MetadataElement elem, final String suffix) { elem.setAttributeInt("Record number", _recordNumber); elem.setAttributeInt("First record subtype", _firstRecordSubtype); elem.setAttributeInt("Record type code", _recordTypeCode); elem.setAttributeInt("Second record subtype", _secondRecordSubtype); elem.setAttributeInt("Third record subtype", _thirdRecordSubtype); elem.setAttributeInt("Record length", _recordLength); }
BaseRecord { public void assignMetadataTo(final MetadataElement elem, final String suffix) { elem.setAttributeInt("Record number", _recordNumber); elem.setAttributeInt("First record subtype", _firstRecordSubtype); elem.setAttributeInt("Record type code", _recordTypeCode); elem.setAttributeInt("Second record subtype", _secondRecordSubtype); elem.setAttributeInt("Third record subtype", _thirdRecordSubtype); elem.setAttributeInt("Record length", _recordLength); } }
BaseRecord { public void assignMetadataTo(final MetadataElement elem, final String suffix) { elem.setAttributeInt("Record number", _recordNumber); elem.setAttributeInt("First record subtype", _firstRecordSubtype); elem.setAttributeInt("Record type code", _recordTypeCode); elem.setAttributeInt("Second record subtype", _secondRecordSubtype); elem.setAttributeInt("Third record subtype", _thirdRecordSubtype); elem.setAttributeInt("Record length", _recordLength); } BaseRecord(final CeosFileReader reader, final long startPos); }
BaseRecord { public void assignMetadataTo(final MetadataElement elem, final String suffix) { elem.setAttributeInt("Record number", _recordNumber); elem.setAttributeInt("First record subtype", _firstRecordSubtype); elem.setAttributeInt("Record type code", _recordTypeCode); elem.setAttributeInt("Second record subtype", _secondRecordSubtype); elem.setAttributeInt("Third record subtype", _thirdRecordSubtype); elem.setAttributeInt("Record length", _recordLength); } BaseRecord(final CeosFileReader reader, final long startPos); int getRecordNumber(); int getFirstRecordSubtype(); int getRecordTypeCode(); int getSecondRecordSubtype(); int getThirdRecordSubtype(); int getRecordLength(); long getStartPos(); CeosFileReader getReader(); long getAbsolutPosition(final long relativePosition); void assignMetadataTo(final MetadataElement elem, final String suffix); static void addIntAttributte(final MetadataElement elem, final String name, final int value); }
BaseRecord { public void assignMetadataTo(final MetadataElement elem, final String suffix) { elem.setAttributeInt("Record number", _recordNumber); elem.setAttributeInt("First record subtype", _firstRecordSubtype); elem.setAttributeInt("Record type code", _recordTypeCode); elem.setAttributeInt("Second record subtype", _secondRecordSubtype); elem.setAttributeInt("Third record subtype", _thirdRecordSubtype); elem.setAttributeInt("Record length", _recordLength); } BaseRecord(final CeosFileReader reader, final long startPos); int getRecordNumber(); int getFirstRecordSubtype(); int getRecordTypeCode(); int getSecondRecordSubtype(); int getThirdRecordSubtype(); int getRecordLength(); long getStartPos(); CeosFileReader getReader(); long getAbsolutPosition(final long relativePosition); void assignMetadataTo(final MetadataElement elem, final String suffix); static void addIntAttributte(final MetadataElement elem, final String name, final int value);  }