Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@90462 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
60dd6e5ac3
commit
20e7f51a02
|
@ -0,0 +1,45 @@
|
||||||
|
package org.gcube.portlets.user.td.widgetcommonevent.shared.column;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author "Giancarlo Panichi"
|
||||||
|
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public enum ColumnDataType {
|
||||||
|
Boolean("Boolean"),
|
||||||
|
Geometry("Geometry"),
|
||||||
|
Integer("Integer"),
|
||||||
|
Numeric("Numeric"),
|
||||||
|
Text("Text");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param text
|
||||||
|
*/
|
||||||
|
private ColumnDataType(final String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
private final String id;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getColumnDataTypes(){
|
||||||
|
List<String> types=new ArrayList<String>();
|
||||||
|
types.add(Boolean.toString());
|
||||||
|
types.add(Geometry.toString());
|
||||||
|
types.add(Integer.toString());
|
||||||
|
types.add(Numeric.toString());
|
||||||
|
types.add(Text.toString());
|
||||||
|
|
||||||
|
return types;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,66 @@
|
||||||
|
package org.gcube.portlets.user.td.widgetcommonevent.shared.column;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author "Giancarlo Panichi"
|
||||||
|
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public enum ColumnTypeCode {
|
||||||
|
ANNOTATION("ANNOTATION"),
|
||||||
|
ATTRIBUTE("ATTRIBUTE"),
|
||||||
|
CODE("CODE"),
|
||||||
|
CODEDESCRIPTION("CODEDESCRIPTION"),
|
||||||
|
CODENAME("CODENAME"),
|
||||||
|
DIMENSION("DIMENSION"),
|
||||||
|
MEASURE("MESAURE"),
|
||||||
|
TIMEDIMENSION("TIMEDIMENSION");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param text
|
||||||
|
*/
|
||||||
|
private ColumnTypeCode(final String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
private final String id;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getColumnDataTypes(){
|
||||||
|
List<String> types=new ArrayList<String>();
|
||||||
|
types.add(ANNOTATION.toString());
|
||||||
|
types.add(ATTRIBUTE.toString());
|
||||||
|
types.add(CODE.toString());
|
||||||
|
types.add(CODEDESCRIPTION.toString());
|
||||||
|
types.add(CODENAME.toString());
|
||||||
|
types.add(DIMENSION.toString());
|
||||||
|
types.add(MEASURE.toString());
|
||||||
|
types.add(TIMEDIMENSION.toString());
|
||||||
|
|
||||||
|
return types;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getColumnDataTypesLabel(){
|
||||||
|
List<String> types=new ArrayList<String>();
|
||||||
|
types.add("Annotation");
|
||||||
|
types.add("Attribute");
|
||||||
|
types.add("Code");
|
||||||
|
types.add("Code Description");
|
||||||
|
types.add("Code Name");
|
||||||
|
types.add("Dimension");
|
||||||
|
types.add("Measure");
|
||||||
|
types.add("Time Dimension");
|
||||||
|
|
||||||
|
return types;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue