1
|
package eu.dnetlib.functionality.modular.ui.contexts.model;
|
2
|
|
3
|
import java.util.ArrayList;
|
4
|
import java.util.List;
|
5
|
|
6
|
public class Category implements Comparable<Category> {
|
7
|
|
8
|
private String id;
|
9
|
private String label;
|
10
|
private String claim;
|
11
|
private List<Concept> concepts = new ArrayList<Concept>();
|
12
|
|
13
|
public Category() {}
|
14
|
|
15
|
public Category(final String id, final String label, final String claim, final List<Concept> concepts) {
|
16
|
super();
|
17
|
this.id = id;
|
18
|
this.label = label;
|
19
|
this.claim = claim;
|
20
|
this.concepts = concepts;
|
21
|
}
|
22
|
|
23
|
@Override
|
24
|
public int compareTo(final Category o) {
|
25
|
return label.compareTo(o.getLabel());
|
26
|
}
|
27
|
|
28
|
public String getId() {
|
29
|
return id;
|
30
|
}
|
31
|
|
32
|
public void setId(final String id) {
|
33
|
this.id = id;
|
34
|
}
|
35
|
|
36
|
public String getLabel() {
|
37
|
return label;
|
38
|
}
|
39
|
|
40
|
public void setLabel(final String label) {
|
41
|
this.label = label;
|
42
|
}
|
43
|
|
44
|
public String getClaim() {
|
45
|
return claim;
|
46
|
}
|
47
|
|
48
|
public void setClaim(final String claim) {
|
49
|
this.claim = claim;
|
50
|
}
|
51
|
|
52
|
public List<Concept> getConcepts() {
|
53
|
return concepts;
|
54
|
}
|
55
|
|
56
|
public void setConcepts(final List<Concept> concepts) {
|
57
|
this.concepts = concepts;
|
58
|
}
|
59
|
|
60
|
}
|