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;
}
Aggregations