Search in sources :

Example 16 with EntryField

use of org.jbei.ice.lib.dto.entry.EntryField in project ice by JBEI.

the class EntriesAsCSV method getCSVHeaders.

protected String[] getCSVHeaders(EntryField[] fields) {
    // get headers
    String[] headers = new String[fields.length + 3];
    headers[0] = "Created";
    headers[1] = "Part ID";
    int i = 1;
    for (EntryField field : fields) {
        i += 1;
        headers[i] = field.getLabel();
    }
    headers[i + 1] = "Sequence File";
    return headers;
}
Also used : EntryField(org.jbei.ice.lib.dto.entry.EntryField)

Aggregations

EntryField (org.jbei.ice.lib.dto.entry.EntryField)16 IOException (java.io.IOException)5 ZipEntry (java.util.zip.ZipEntry)4 PartData (org.jbei.ice.lib.dto.entry.PartData)4 Date (java.util.Date)3 HashMap (java.util.HashMap)3 HashSet (java.util.HashSet)3 CSVWriter (com.opencsv.CSVWriter)2 Path (java.nio.file.Path)2 FeaturedDNASequence (org.jbei.ice.lib.dto.FeaturedDNASequence)2 ByteArrayWrapper (org.jbei.ice.lib.entry.sequence.ByteArrayWrapper)2 GenbankFormatter (org.jbei.ice.lib.entry.sequence.composers.formatters.GenbankFormatter)2 GroupController (org.jbei.ice.lib.group.GroupController)2 Entry (org.jbei.ice.storage.model.Entry)2 CSVParser (com.opencsv.CSVParser)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 FileInputStream (java.io.FileInputStream)1 InputStream (java.io.InputStream)1 ArrayList (java.util.ArrayList)1 LinkedList (java.util.LinkedList)1