1 |
44900
|
claudio.at
|
package eu.dnetlib.data.transform;
|
2 |
|
|
|
3 |
|
|
import java.util.Map;
|
4 |
|
|
|
5 |
|
|
import com.google.gson.Gson;
|
6 |
|
|
|
7 |
|
|
/**
|
8 |
|
|
* Created by claudio on 12/12/2016.
|
9 |
|
|
*/
|
10 |
|
|
public class Ontology {
|
11 |
|
|
|
12 |
|
|
private String code;
|
13 |
|
|
private String description;
|
14 |
|
|
|
15 |
|
|
private Map<String, OntologyTerm> terms;
|
16 |
|
|
|
17 |
|
|
public String getCode() {
|
18 |
|
|
return code;
|
19 |
|
|
}
|
20 |
|
|
|
21 |
|
|
public String getDescription() {
|
22 |
|
|
return description;
|
23 |
|
|
}
|
24 |
|
|
|
25 |
|
|
public Map<String, OntologyTerm> getTerms() {
|
26 |
|
|
return terms;
|
27 |
|
|
}
|
28 |
|
|
|
29 |
|
|
public Ontology setCode(final String code) {
|
30 |
|
|
this.code = code;
|
31 |
|
|
return this;
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
public Ontology setDescription(final String description) {
|
35 |
|
|
this.description = description;
|
36 |
|
|
return this;
|
37 |
|
|
}
|
38 |
|
|
|
39 |
|
|
public Ontology setTerms(final Map<String, OntologyTerm> terms) {
|
40 |
|
|
this.terms = terms;
|
41 |
|
|
return this;
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
@Override
|
45 |
|
|
public String toString() {
|
46 |
|
|
return new Gson().toJson(this);
|
47 |
|
|
}
|
48 |
|
|
|
49 |
|
|
}
|