Project

General

Profile

1
package eu.dnetlib.rmi.objects.dsmanager;
2

    
3
import javax.xml.bind.annotation.XmlRootElement;
4

    
5
@XmlRootElement
6
public class BrowseTerm implements Comparable<BrowseTerm> {
7

    
8
	private String id;
9
	private String name;
10
	private int value;
11

    
12
	public BrowseTerm() {}
13

    
14
	public BrowseTerm(final String id, final String name, final int value) {
15
		this.id = id;
16
		this.name = name;
17
		this.value = value;
18
	}
19

    
20
	public String getId() {
21
		return id;
22
	}
23

    
24
	public void setId(final String id) {
25
		this.id = id;
26
	}
27

    
28
	public int getValue() {
29
		return value;
30
	}
31

    
32
	public void setValue(final int value) {
33
		this.value = value;
34
	}
35

    
36
	public String getName() {
37
		return name;
38
	}
39

    
40
	public void setName(final String name) {
41
		this.name = name;
42
	}
43

    
44
	@Override
45
	public int compareTo(final BrowseTerm o) {
46
		return Integer.compare(value, o.getValue());
47
	}
48
}
(2-2/7)