2016-10-25 12:46:50 +02:00
|
|
|
package org.gcube.data.analysis.dataminermanagercl.shared.parameters;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2017-05-10 12:44:22 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2016-10-25 12:46:50 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class ObjectParameter extends Parameter {
|
2016-11-03 11:59:56 +01:00
|
|
|
|
2016-10-25 12:46:50 +02:00
|
|
|
private static final long serialVersionUID = 1058462575242430851L;
|
|
|
|
private String type;
|
|
|
|
private String defaultValue;
|
2016-11-03 11:59:56 +01:00
|
|
|
|
2016-10-25 12:46:50 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public ObjectParameter() {
|
|
|
|
super();
|
|
|
|
this.typology = ParameterType.OBJECT;
|
|
|
|
}
|
2016-11-03 11:59:56 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param name
|
2017-05-10 12:44:22 +02:00
|
|
|
* name
|
2016-11-03 11:59:56 +01:00
|
|
|
* @param description
|
2017-05-10 12:44:22 +02:00
|
|
|
* description
|
2016-11-03 11:59:56 +01:00
|
|
|
* @param type
|
2017-05-10 12:44:22 +02:00
|
|
|
* type
|
2016-11-03 11:59:56 +01:00
|
|
|
* @param defaultValue
|
2017-05-10 12:44:22 +02:00
|
|
|
* default value
|
2016-11-03 11:59:56 +01:00
|
|
|
*/
|
2017-05-10 12:44:22 +02:00
|
|
|
public ObjectParameter(String name, String description, String type, String defaultValue) {
|
2016-10-25 12:46:50 +02:00
|
|
|
super(name, ParameterType.OBJECT, description);
|
|
|
|
this.type = type;
|
|
|
|
this.defaultValue = defaultValue;
|
|
|
|
}
|
2016-11-03 11:59:56 +01:00
|
|
|
|
2016-10-25 12:46:50 +02:00
|
|
|
/**
|
|
|
|
* @return the type
|
|
|
|
*/
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
2016-11-03 11:59:56 +01:00
|
|
|
|
2016-10-25 12:46:50 +02:00
|
|
|
/**
|
2016-11-03 11:59:56 +01:00
|
|
|
* @param type
|
|
|
|
* the type to set
|
2016-10-25 12:46:50 +02:00
|
|
|
*/
|
|
|
|
public void setType(String type) {
|
|
|
|
this.type = type;
|
|
|
|
}
|
2016-11-03 11:59:56 +01:00
|
|
|
|
2016-10-25 12:46:50 +02:00
|
|
|
/**
|
|
|
|
* @return the defaultValue
|
|
|
|
*/
|
|
|
|
public String getDefaultValue() {
|
|
|
|
return defaultValue;
|
|
|
|
}
|
2016-11-03 11:59:56 +01:00
|
|
|
|
2016-10-25 12:46:50 +02:00
|
|
|
/**
|
2016-11-03 11:59:56 +01:00
|
|
|
* @param defaultValue
|
|
|
|
* the defaultValue to set
|
2016-10-25 12:46:50 +02:00
|
|
|
*/
|
|
|
|
public void setDefaultValue(String defaultValue) {
|
|
|
|
this.defaultValue = defaultValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
2017-05-10 12:44:22 +02:00
|
|
|
return "ObjectParameter [type=" + type + ", defaultValue=" + defaultValue + ", value=" + value + ", name="
|
|
|
|
+ name + ", description=" + description + ", typology=" + typology + "]";
|
2016-10-25 12:46:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|