89 lines
1.5 KiB
Java
89 lines
1.5 KiB
Java
|
|
package org.gcube.portlets.user.dataminermanager.client.bean.parameters;
|
|
|
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
|
|
|
/**
|
|
* @author ceras
|
|
*
|
|
*/
|
|
public class ObjectParameter extends Parameter implements IsSerializable {
|
|
|
|
private static final long serialVersionUID = 1058462575242430851L;
|
|
private String type;
|
|
private String defaultValue;
|
|
private String value;
|
|
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public ObjectParameter() {
|
|
super();
|
|
this.typology = ParameterTypology.OBJECT;
|
|
}
|
|
|
|
|
|
public ObjectParameter(String name, String description, String type, String defaultValue) {
|
|
super(name, ParameterTypology.OBJECT, description);
|
|
this.type = type;
|
|
this.defaultValue = defaultValue;
|
|
}
|
|
|
|
/**
|
|
* @return the type
|
|
*/
|
|
public String getType() {
|
|
return type;
|
|
}
|
|
|
|
/**
|
|
* @param type the type to set
|
|
*/
|
|
public void setType(String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
/**
|
|
* @return the defaultValue
|
|
*/
|
|
public String getDefaultValue() {
|
|
return defaultValue;
|
|
}
|
|
|
|
/**
|
|
* @param defaultValue the defaultValue to set
|
|
*/
|
|
public void setDefaultValue(String defaultValue) {
|
|
this.defaultValue = defaultValue;
|
|
}
|
|
|
|
/**
|
|
* @return the value
|
|
*/
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
|
|
@Override
|
|
public void setValue(String value) {
|
|
this.value = value;
|
|
}
|
|
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "ObjectParameter [type=" + type + ", defaultValue="
|
|
+ defaultValue + ", value=" + value + ", name=" + name
|
|
+ ", description=" + description + ", typology=" + typology
|
|
+ "]";
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|