2017-04-25 15:41:27 +02:00
|
|
|
package org.gcube.portlets.widgets.ckandatapublisherwidget.shared.metadata;
|
2016-09-12 17:58:50 +02:00
|
|
|
|
|
|
|
/**
|
2017-03-15 11:02:21 +01:00
|
|
|
* Data type.
|
2017-04-25 15:41:27 +02:00
|
|
|
* @see org.gcube.datacatalogue.metadatadiscovery.bean.jaxb.DataType
|
2017-03-15 11:02:21 +01:00
|
|
|
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
2016-09-12 17:58:50 +02:00
|
|
|
*/
|
2017-04-25 15:41:27 +02:00
|
|
|
public enum DataTypeWrapper {
|
2016-09-12 17:58:50 +02:00
|
|
|
|
|
|
|
String,
|
2016-09-14 16:29:52 +02:00
|
|
|
Time,
|
|
|
|
Time_Interval,
|
|
|
|
Times_ListOf,
|
2016-09-12 17:58:50 +02:00
|
|
|
Text,
|
|
|
|
Boolean,
|
2017-04-25 15:41:27 +02:00
|
|
|
Number,
|
|
|
|
GeoJSON;
|
2016-09-12 17:58:50 +02:00
|
|
|
|
2017-04-25 15:41:27 +02:00
|
|
|
/**
|
|
|
|
* Value as String.
|
|
|
|
* @return the string
|
|
|
|
*/
|
|
|
|
public String value() {
|
|
|
|
return name();
|
|
|
|
}
|
2016-09-12 17:58:50 +02:00
|
|
|
}
|