1
|
/**
|
2
|
* Copyright (C) 2015 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.persistence.dto;
|
10
|
|
11
|
import java.util.Set;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.term.Representation;
|
14
|
import eu.etaxonomy.cdm.model.term.TermBase;
|
15
|
|
16
|
/**
|
17
|
* @author andreas
|
18
|
* @since Mar 25, 2015
|
19
|
*
|
20
|
*/
|
21
|
public interface ITermRepresentation_L10n {
|
22
|
|
23
|
public abstract String getLabel();
|
24
|
|
25
|
public abstract String getAbbreviatedLabel();
|
26
|
|
27
|
public abstract String getText();
|
28
|
|
29
|
public String getLanguageIso();
|
30
|
|
31
|
public String getLanguageUuid();
|
32
|
|
33
|
/**
|
34
|
* Derives the localized representations from the given term and sets
|
35
|
* the according fields of the TermRepresentation_L10n instance
|
36
|
*
|
37
|
* @param term
|
38
|
* @param useInverseRepresentation
|
39
|
*/
|
40
|
public abstract void localize(TermBase term, boolean useInverseRepresentation);
|
41
|
|
42
|
void localize(Set<Representation> representations);
|
43
|
|
44
|
}
|