/** @return tab split column header string list. */ public SplitList<String> getHeaderList() { SplitList<String> headerList = new SplitList<String>(TAB); for (MZTabColumn mzTabColumn : columnMapping.values()) { headerList.add(mzTabColumn.getHeader()); } return headerList; }
/** * Query the MZTabColumn in factory, based on column header with case-insensitive. Notice: for * optional columns, header name maybe flexible. For example, num_psms_ms_run[1]. At this time, * user SHOULD BE provide the full header name to query MZTabColumn. If just provide * num_psms_ms_run, return null. */ public MZTabColumn findColumnByHeader(String header) { header = header.trim(); for (MZTabColumn column : columnMapping.values()) { if (header.equalsIgnoreCase(column.getHeader())) { return column; } } return null; }