Project

General

Profile

1
package eu.dnetlib.data.transform;
2

    
3
import com.google.gson.Gson;
4

    
5
/**
6
 * Created by claudio on 12/12/2016.
7
 */
8
public class OntologyTerm {
9

    
10
	private String code;
11
	private String encoding;
12
	private String englishName;
13
	private String nativeName;
14

    
15
	private String inverseCode;
16

    
17
	public static OntologyTerm newInstance() {
18
		return new OntologyTerm();
19
	}
20

    
21
	public String getCode() {
22
		return code;
23
	}
24

    
25
	public String getEncoding() {
26
		return encoding;
27
	}
28

    
29
	public String getEnglishName() {
30
		return englishName;
31
	}
32

    
33
	public String getNativeName() {
34
		return nativeName;
35
	}
36

    
37
	public String getInverseCode() {
38
		return inverseCode;
39
	}
40

    
41
	public OntologyTerm setCode(final String code) {
42
		this.code = code;
43
		return this;
44
	}
45

    
46
	public OntologyTerm setEncoding(final String encoding) {
47
		this.encoding = encoding;
48
		return this;
49
	}
50

    
51
	public OntologyTerm setEnglishName(final String englishName) {
52
		this.englishName = englishName;
53
		return this;
54
	}
55

    
56
	public OntologyTerm setNativeName(final String nativeName) {
57
		this.nativeName = nativeName;
58
		return this;
59
	}
60

    
61
	public OntologyTerm setInverseCode(final String inverseCode) {
62
		this.inverseCode = inverseCode;
63
		return this;
64
	}
65

    
66
	@Override
67
	public String toString() {
68
		return new Gson().toJson(this);
69
	}
70

    
71
}
(8-8/13)