Project

General

Profile

1
package eu.dnetlib.vocabularies.publisher.model;
2

    
3
import java.io.Serializable;
4
import java.util.List;
5

    
6
public class VocabularyTerm implements Serializable {
7

    
8
	private static final long serialVersionUID = -1661921700669896425L;
9
	private String englishName;
10
	private String nativeName;
11
	private String encoding;
12
	private String code;
13
	private List<Synonym> synonyms;
14

    
15
	public String getEnglishName() {
16
		return englishName;
17
	}
18

    
19
	public void setEnglishName(final String englishName) {
20
		this.englishName = englishName;
21
	}
22

    
23
	public String getNativeName() {
24
		return nativeName;
25
	}
26

    
27
	public void setNativeName(final String nativeName) {
28
		this.nativeName = nativeName;
29
	}
30

    
31
	public String getEncoding() {
32
		return encoding;
33
	}
34

    
35
	public void setEncoding(final String encoding) {
36
		this.encoding = encoding;
37
	}
38

    
39
	public String getCode() {
40
		return code;
41
	}
42

    
43
	public void setCode(final String code) {
44
		this.code = code;
45
	}
46

    
47
	public VocabularyTerm() {
48
		super();
49
	}
50

    
51
	public List<Synonym> getSynonyms() {
52
		return synonyms;
53
	}
54

    
55
	public void setSynonyms(List<Synonym> synonyms) {
56
		this.synonyms = synonyms;
57
	}
58

    
59
	/**
60
	 * This constructor is used by the SplittedQueryExecutor for the retrieval of terms from the IS when called by Vocabularyretriever.
61
	 * 
62
	 * @param englishName
63
	 * @param nativeName
64
	 * @param encoding
65
	 * @param code
66
	 */
67
	public VocabularyTerm(final String englishName, final String nativeName, final String encoding, final String code) {
68
		super();
69
		this.englishName = englishName;
70
		this.nativeName = nativeName;
71
		this.encoding = encoding;
72
		this.code = code;
73
	}
74

    
75
	@Override
76
	public String toString() {
77
		return "VocabularyTerm [englishName=" + englishName + ", nativeName=" + nativeName + ", encoding=" + encoding + ", code=" + code + ", synonyms=" + synonyms + "]";
78
	}
79

    
80
}
(3-3/3)