Search in sources :

Example 1 with EntryBlock

use of org.nextprot.api.core.service.export.format.EntryBlock in project nextprot-api by calipho-sib.

the class EntryXLSWriter method writeEntry.

@Override
protected void writeEntry(String entryName) throws IOException {
    EntryConfig config = EntryConfig.newConfig(entryName);
    for (EntryBlock block : entryDataProvider.getSourceEntryBlocks()) {
        config.withBlock(block);
    }
    Entry entry = entryBuilderService.build(config);
    for (Record record : entryDataProvider.getRecords(entry)) {
        HSSFRow row = worksheet.createRow(rowIndex);
        writeRecord(row, record);
        rowIndex++;
    }
}
Also used : Entry(org.nextprot.api.core.domain.Entry) EntryConfig(org.nextprot.api.core.service.fluent.EntryConfig) EntryBlock(org.nextprot.api.core.service.export.format.EntryBlock)

Aggregations

Entry (org.nextprot.api.core.domain.Entry)1 EntryBlock (org.nextprot.api.core.service.export.format.EntryBlock)1 EntryConfig (org.nextprot.api.core.service.fluent.EntryConfig)1