72 lines
1.3 KiB
Java
72 lines
1.3 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.user.dataminermanager.shared.parameters;
|
|
|
|
/**
|
|
*
|
|
* @author Giancarlo Panichi email: <a
|
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
*
|
|
*/
|
|
public class ListParameter extends Parameter {
|
|
|
|
private static final long serialVersionUID = 5405965026753332225L;
|
|
private String type;
|
|
private String separator;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public ListParameter() {
|
|
super();
|
|
this.typology = ParameterType.LIST;
|
|
}
|
|
|
|
/**
|
|
* @param defaultValue
|
|
* @param value
|
|
*/
|
|
public ListParameter(String name, String description, String type,
|
|
String separator) {
|
|
super(name, ParameterType.LIST, description);
|
|
this.type = type;
|
|
this.separator = separator;
|
|
}
|
|
|
|
/**
|
|
* @return the type
|
|
*/
|
|
public String getType() {
|
|
return type;
|
|
}
|
|
|
|
/**
|
|
* @param type
|
|
* the type to set
|
|
*/
|
|
public void setType(String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
/**
|
|
* @return the separator
|
|
*/
|
|
public String getSeparator() {
|
|
return separator;
|
|
}
|
|
|
|
public void setSeparator(String separator) {
|
|
this.separator = separator;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "ListParameter [type=" + type + ", value=" + value
|
|
+ ", separator=" + separator + ", name=" + name
|
|
+ ", description=" + description + ", typology=" + typology
|
|
+ "]";
|
|
}
|
|
|
|
}
|