Revision 45785
Added by Michele Artini about 7 years ago
VocabularyEntry.java | ||
---|---|---|
1 |
package eu.dnetlib.administration.uis.modules.datasources; |
|
2 |
|
|
3 |
public class VocabularyEntry implements Comparable<VocabularyEntry> { |
|
4 |
|
|
5 |
private String name; |
|
6 |
private String desc; |
|
7 |
|
|
8 |
public VocabularyEntry() {} |
|
9 |
|
|
10 |
public VocabularyEntry(final String name, final String desc) { |
|
11 |
this.name = name; |
|
12 |
this.desc = desc; |
|
13 |
} |
|
14 |
|
|
15 |
public String getName() { |
|
16 |
return name; |
|
17 |
} |
|
18 |
|
|
19 |
public void setName(final String name) { |
|
20 |
this.name = name; |
|
21 |
} |
|
22 |
|
|
23 |
public String getDesc() { |
|
24 |
return desc; |
|
25 |
} |
|
26 |
|
|
27 |
public void setDesc(final String desc) { |
|
28 |
this.desc = desc; |
|
29 |
} |
|
30 |
|
|
31 |
@Override |
|
32 |
public int compareTo(final VocabularyEntry o) { |
|
33 |
return getName().compareTo(o.getName()); |
|
34 |
} |
|
35 |
|
|
36 |
} |
Also available in: Unified diff