2016-10-25 12:46:50 +02:00
|
|
|
package org.gcube.data.analysis.dataminermanagercl.shared.data.computations;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2017-05-10 12:44:22 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2016-10-25 12:46:50 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class ComputationValueFile extends ComputationValue {
|
|
|
|
private static final long serialVersionUID = -5845606225432949795L;
|
|
|
|
|
|
|
|
private String fileName;
|
|
|
|
private String mimeType;
|
2018-05-03 14:43:24 +02:00
|
|
|
private boolean netcdf;
|
2016-10-25 12:46:50 +02:00
|
|
|
|
|
|
|
public ComputationValueFile() {
|
|
|
|
super(ComputationValueType.File);
|
|
|
|
}
|
|
|
|
|
2018-05-03 14:43:24 +02:00
|
|
|
public ComputationValueFile(String url, String fileName, String mimeType, boolean netcdf) {
|
2016-10-25 12:46:50 +02:00
|
|
|
super(ComputationValueType.File, url);
|
|
|
|
this.fileName = fileName;
|
|
|
|
this.mimeType = mimeType;
|
2018-05-03 14:43:24 +02:00
|
|
|
this.netcdf = netcdf;
|
2016-10-25 12:46:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getFileName() {
|
|
|
|
return fileName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFileName(String fileName) {
|
|
|
|
this.fileName = fileName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getMimeType() {
|
|
|
|
return mimeType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setMimeType(String mimeType) {
|
|
|
|
this.mimeType = mimeType;
|
|
|
|
}
|
|
|
|
|
2018-05-03 14:43:24 +02:00
|
|
|
public boolean isNetcdf() {
|
|
|
|
return netcdf;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setNetcdf(boolean netcdf) {
|
|
|
|
this.netcdf = netcdf;
|
|
|
|
}
|
|
|
|
|
2016-10-25 12:46:50 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2018-05-03 14:43:24 +02:00
|
|
|
return "ComputationValueFile [fileName=" + fileName + ", mimeType=" + mimeType + ", netcdf=" + netcdf + "]";
|
2016-10-25 12:46:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|