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:
parent
864d5ab8ea
commit
e45834d2f6
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
+ "]";
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue