Updated to support tabular resource parameter for TabularData

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/data-miner-manager-cl@144504 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-03-01 17:35:57 +00:00
parent 864d5ab8ea
commit e45834d2f6
2 changed files with 53 additions and 1 deletions

View File

@ -7,5 +7,5 @@ package org.gcube.data.analysis.dataminermanagercl.shared.parameters;
*
*/
public enum ParameterType {
OBJECT, TABULAR, FILE, ENUM, LIST, COLUMN, COLUMN_LIST, TABULAR_LIST, WKT, DATE, TIME;
OBJECT, TABULAR, TABULAR_RESOURCE, FILE, ENUM, LIST, COLUMN, COLUMN_LIST, TABULAR_LIST, WKT, DATE, TIME;
}

View File

@ -0,0 +1,52 @@
/**
*
*/
package org.gcube.data.analysis.dataminermanagercl.shared.parameters;
/**
*
* @author Giancarlo Panichi email: <a
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
*
*/
public class TabularResourceParameter extends Parameter {
private static final long serialVersionUID = 8038591467145151553L;
/**
*
*/
public TabularResourceParameter() {
super();
this.typology = ParameterType.TABULAR_RESOURCE;
}
/**
*
* @param name
* @param description
* @param tableName
*/
public TabularResourceParameter(String name, String description, String tabularResourceId) {
super(name, ParameterType.TABULAR_RESOURCE, description);
this.value = tabularResourceId;
}
public String getTabularResourceId() {
return value;
}
public void setTabularResourceId(String tabularResourceId) {
this.value = tabularResourceId;
}
@Override
public String toString() {
return "TabularResourceParameter [name=" + name + ", description="
+ description + ", typology=" + typology + ", value=" + value
+ "]";
}
}