49 lines
813 B
Java
49 lines
813 B
Java
package org.gcube.portlets.user.td.expressionwidget.client.multicolumn;
|
|
|
|
|
|
/**
|
|
*
|
|
* @author giancarlo
|
|
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
*
|
|
*/
|
|
public enum DepthOfExpressionType {
|
|
BOTTOM("Botom"),
|
|
STARTOR("StartOr"),
|
|
ENDOR("EndOr"),
|
|
STARTAND("StartAnd"),
|
|
ENDAND("EndAnd"),
|
|
COMMA("Comma");
|
|
|
|
|
|
|
|
/**
|
|
* @param text
|
|
*/
|
|
private DepthOfExpressionType(final String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
private final String id;
|
|
|
|
@Override
|
|
public String toString() {
|
|
return id;
|
|
}
|
|
|
|
public String getTableTypeLabel() {
|
|
return id;
|
|
}
|
|
|
|
|
|
public static DepthOfExpressionType getColumnDataTypeFromId(String id) {
|
|
for (DepthOfExpressionType tableType : values()) {
|
|
if (tableType.id.compareToIgnoreCase(id) == 0) {
|
|
return tableType;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
}
|