2016-10-07 18:23:23 +02:00
|
|
|
package org.gcube.data_catalogue.grsf_publish_ws.utils.groups;
|
|
|
|
|
2016-10-08 22:16:08 +02:00
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
/**
|
2016-12-03 11:50:38 +01:00
|
|
|
* The type of record, i.e. Aggregated or Original
|
2016-10-07 18:23:23 +02:00
|
|
|
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
|
|
|
*/
|
2016-12-01 19:19:22 +01:00
|
|
|
public enum Record_Type {
|
2016-10-08 22:16:08 +02:00
|
|
|
|
2016-12-03 11:50:38 +01:00
|
|
|
AGGREGATED("Aggregated"),
|
2016-12-07 14:45:22 +01:00
|
|
|
SOURCE("Source");
|
2016-10-08 22:16:08 +02:00
|
|
|
|
2016-12-03 11:50:38 +01:00
|
|
|
private String name;
|
2016-10-08 22:16:08 +02:00
|
|
|
|
2016-12-03 11:50:38 +01:00
|
|
|
private Record_Type(String name) {
|
|
|
|
this.name = name;
|
2016-10-08 22:16:08 +02:00
|
|
|
}
|
2016-10-08 23:10:25 +02:00
|
|
|
|
2016-12-03 11:50:38 +01:00
|
|
|
public String getRecordType(){
|
|
|
|
return name;
|
2016-10-08 23:10:25 +02:00
|
|
|
}
|
2016-12-04 15:12:29 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return this.name;
|
|
|
|
}
|
|
|
|
|
2016-10-07 18:23:23 +02:00
|
|
|
}
|