1 |
35892
|
claudio.at
|
package eu.dnetlib.functionality.modular.ui.dedup;
|
2 |
|
|
|
3 |
39358
|
claudio.at
|
/**
|
4 |
|
|
* Utility Class EntityType, helps the user interface to display the different entity types.
|
5 |
|
|
*/
|
6 |
|
|
public class EntityType {
|
7 |
35892
|
claudio.at
|
|
8 |
39358
|
claudio.at
|
/** The id. */
|
9 |
35892
|
claudio.at
|
private String id;
|
10 |
39358
|
claudio.at
|
|
11 |
|
|
/** The type. */
|
12 |
35892
|
claudio.at
|
private String type;
|
13 |
39358
|
claudio.at
|
|
14 |
|
|
/** The label. */
|
15 |
35892
|
claudio.at
|
private String label;
|
16 |
|
|
|
17 |
39358
|
claudio.at
|
/**
|
18 |
|
|
* Instantiates a new entity type.
|
19 |
|
|
*/
|
20 |
35892
|
claudio.at
|
public EntityType() {};
|
21 |
|
|
|
22 |
39358
|
claudio.at
|
/**
|
23 |
|
|
* Instantiates a new entity type.
|
24 |
|
|
*
|
25 |
|
|
* @param id
|
26 |
|
|
* the id
|
27 |
|
|
* @param type
|
28 |
|
|
* the type
|
29 |
|
|
* @param label
|
30 |
|
|
* the label
|
31 |
|
|
*/
|
32 |
|
|
public EntityType(final String id, final String type, final String label) {
|
33 |
35892
|
claudio.at
|
super();
|
34 |
|
|
setId(id);
|
35 |
|
|
setType(type);
|
36 |
|
|
setLabel(label);
|
37 |
|
|
}
|
38 |
|
|
|
39 |
39358
|
claudio.at
|
/**
|
40 |
|
|
* Gets the id.
|
41 |
|
|
*
|
42 |
|
|
* @return the id
|
43 |
|
|
*/
|
44 |
35892
|
claudio.at
|
public String getId() {
|
45 |
|
|
return id;
|
46 |
|
|
}
|
47 |
|
|
|
48 |
39358
|
claudio.at
|
/**
|
49 |
|
|
* Sets the id.
|
50 |
|
|
*
|
51 |
|
|
* @param id
|
52 |
|
|
* the new id
|
53 |
|
|
*/
|
54 |
|
|
public void setId(final String id) {
|
55 |
35892
|
claudio.at
|
this.id = id;
|
56 |
|
|
}
|
57 |
|
|
|
58 |
39358
|
claudio.at
|
/**
|
59 |
|
|
* Gets the type.
|
60 |
|
|
*
|
61 |
|
|
* @return the type
|
62 |
|
|
*/
|
63 |
35892
|
claudio.at
|
public String getType() {
|
64 |
|
|
return type;
|
65 |
|
|
}
|
66 |
|
|
|
67 |
39358
|
claudio.at
|
/**
|
68 |
|
|
* Sets the type.
|
69 |
|
|
*
|
70 |
|
|
* @param type
|
71 |
|
|
* the new type
|
72 |
|
|
*/
|
73 |
|
|
public void setType(final String type) {
|
74 |
35892
|
claudio.at
|
this.type = type;
|
75 |
|
|
}
|
76 |
|
|
|
77 |
39358
|
claudio.at
|
/**
|
78 |
|
|
* Gets the label.
|
79 |
|
|
*
|
80 |
|
|
* @return the label
|
81 |
|
|
*/
|
82 |
35892
|
claudio.at
|
public String getLabel() {
|
83 |
|
|
return label;
|
84 |
|
|
}
|
85 |
|
|
|
86 |
39358
|
claudio.at
|
/**
|
87 |
|
|
* Sets the label.
|
88 |
|
|
*
|
89 |
|
|
* @param label
|
90 |
|
|
* the new label
|
91 |
|
|
*/
|
92 |
|
|
public void setLabel(final String label) {
|
93 |
35892
|
claudio.at
|
this.label = label;
|
94 |
|
|
}
|
95 |
|
|
|
96 |
|
|
}
|