Project

General

Profile

1
package eu.dnetlib.functionality.modular.ui.contexts.model;
2

    
3
public class Context implements Comparable<Context> {
4

    
5
	private String profileId;
6
	private String id;
7
	private String label;
8
	private String type;
9

    
10
	@Override
11
	public int compareTo(final Context o) {
12
		return label.compareTo(o.getLabel());
13
	}
14

    
15
	public Context() {}
16

    
17
	public Context(final String profileId, final String id, final String label, final String type) {
18
		super();
19
		this.profileId = profileId;
20
		this.id = id;
21
		this.label = label;
22
		this.type = type;
23
	}
24

    
25
	public String getProfileId() {
26
		return profileId;
27
	}
28

    
29
	public void setProfileId(final String profileId) {
30
		this.profileId = profileId;
31
	}
32

    
33
	public String getId() {
34
		return id;
35
	}
36

    
37
	public void setId(final String id) {
38
		this.id = id;
39
	}
40

    
41
	public String getLabel() {
42
		return label;
43
	}
44

    
45
	public void setLabel(final String label) {
46
		this.label = label;
47
	}
48

    
49
	public String getType() {
50
		return type;
51
	}
52

    
53
	public void setType(final String type) {
54
		this.type = type;
55
	}
56
}
(3-3/3)