Project

General

Profile

Download (845 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 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
package eu.etaxonomy.cdm.io.stream;
10

    
11
import eu.etaxonomy.cdm.model.common.CdmBase;
12

    
13
/**
14
 * Interface for all converters from some input to some output.
15
 * Supports mapping of input to output and identifier identification.
16
 *
17
 * @author a.mueller
18
 * @since 23.11.2011
19
 *
20
 */
21
public interface IConverter<IN extends IConverterInput, OUT extends IConverterOutput, SOURCE_ID extends Object> {
22

    
23
	public IReader<MappedCdmBase<? extends CdmBase>> map(IN item);
24

    
25
	/**
26
	 * Returns the identifier (if any) of the input
27
	 * @param item
28
	 * @return
29
	 */
30
	public SOURCE_ID getSourceId(IN item);
31
}
(4-4/21)