1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.model.common;
|
11
|
|
12
|
import java.util.List;
|
13
|
import java.util.Map;
|
14
|
import java.util.UUID;
|
15
|
|
16
|
import au.com.bytecode.opencsv.CSVWriter;
|
17
|
|
18
|
public interface ILoadableTerm<T extends IDefinedTerm>{
|
19
|
|
20
|
/**
|
21
|
* Fills the {@link ILoadableTerm term} with contents from a csvLine. If the csvLine represents the default language
|
22
|
* the csvLine attributes are merged into the existing default language and the default Language is returned.
|
23
|
* @param csvLine
|
24
|
* @return
|
25
|
*/
|
26
|
public T readCsvLine(Class<T> termClass, List<String> csvLine, Map<UUID,DefinedTermBase> terms, boolean abbrevAsId);
|
27
|
|
28
|
public void writeCsvLine(CSVWriter writer, T term);
|
29
|
}
|