Merge branch 'develop' into LibrAlign
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / translation / ITranslationServiceWrapper.java
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.taxeditor.ui.translation;
11
12 import eu.etaxonomy.cdm.model.common.Language;
13
14 /**
15 * <p>ITranslationServiceWrapper interface.</p>
16 *
17 * @author n.hoffmann
18 * @created Oct 21, 2010
19 * @version 1.0
20 */
21 public interface ITranslationServiceWrapper {
22
23 /**
24 * <p>translate</p>
25 *
26 * @param text a {@link java.lang.String} object.
27 * @param source a {@link eu.etaxonomy.cdm.model.common.Language} object.
28 * @param target a {@link eu.etaxonomy.cdm.model.common.Language} object.
29 * @return a {@link java.lang.String} object.
30 * @throws eu.etaxonomy.taxeditor.ui.translation.LanguageNotSupportedException if any.
31 */
32 public String translate(String text, Language source, Language target) throws LanguageNotSupportedException;
33
34 }