root/trunk/cdmlib/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/ILoadableTerm.java

Revision 13730, 0.9 kB (checked in by n.hoffmann, 4 months ago)
  • Property svn:keywords set to Id
Line 
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
10package eu.etaxonomy.cdm.model.common;
11
12import java.util.List;
13import java.util.Map;
14import java.util.UUID;
15
16import au.com.bytecode.opencsv.CSVWriter;
17
18public 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);
27
28        public  void writeCsvLine(CSVWriter writer, T term);
29}
Note: See TracBrowser for help on using the browser.