1
|
package eu.dnetlib.rmi.datasource;
|
2
|
|
3
|
import java.util.HashSet;
|
4
|
import java.util.Set;
|
5
|
import javax.xml.bind.annotation.XmlRootElement;
|
6
|
|
7
|
@XmlRootElement
|
8
|
public class SimpleDatasourceDesc implements Comparable<SimpleDatasourceDesc> {
|
9
|
|
10
|
private String id;
|
11
|
private String name;
|
12
|
private String typology;
|
13
|
private String origId;
|
14
|
private Set<String> apis = new HashSet<String>();
|
15
|
private boolean valid;
|
16
|
|
17
|
public String getId() {
|
18
|
return id;
|
19
|
}
|
20
|
|
21
|
public void setId(final String id) {
|
22
|
this.id = id;
|
23
|
}
|
24
|
|
25
|
public String getName() {
|
26
|
return name;
|
27
|
}
|
28
|
|
29
|
public void setName(final String name) {
|
30
|
this.name = name;
|
31
|
}
|
32
|
|
33
|
public boolean isValid() {
|
34
|
return valid;
|
35
|
}
|
36
|
|
37
|
public void setValid(final boolean valid) {
|
38
|
this.valid = valid;
|
39
|
}
|
40
|
|
41
|
public String getTypology() {
|
42
|
return typology;
|
43
|
}
|
44
|
|
45
|
public void setTypology(final String typology) {
|
46
|
this.typology = typology;
|
47
|
}
|
48
|
|
49
|
public String getOrigId() {
|
50
|
return origId;
|
51
|
}
|
52
|
|
53
|
public void setOrigId(final String origId) {
|
54
|
this.origId = origId;
|
55
|
}
|
56
|
|
57
|
public Set<String> getApis() {
|
58
|
return apis;
|
59
|
}
|
60
|
|
61
|
public void setApis(final Set<String> apis) {
|
62
|
this.apis = apis;
|
63
|
}
|
64
|
|
65
|
@Override
|
66
|
public int compareTo(final SimpleDatasourceDesc e) {
|
67
|
return getName().compareTo(e.getName());
|
68
|
}
|
69
|
|
70
|
}
|