2016-05-12 19:20:39 +02:00
|
|
|
package org.gcube.portlets.user.dataminermanager.shared.data.computations;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2017-05-12 11:58:15 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2016-05-12 19:20:39 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class ComputationValueFile extends ComputationValue {
|
|
|
|
private static final long serialVersionUID = -5845606225432949795L;
|
|
|
|
|
|
|
|
private String fileName;
|
|
|
|
private String mimeType;
|
2017-11-09 18:04:16 +01:00
|
|
|
private boolean netcdf;
|
2016-05-12 19:20:39 +02:00
|
|
|
|
|
|
|
public ComputationValueFile() {
|
2016-08-04 15:34:52 +02:00
|
|
|
super(ComputationValueType.File);
|
2016-05-12 19:20:39 +02:00
|
|
|
}
|
|
|
|
|
2017-11-09 18:04:16 +01:00
|
|
|
public ComputationValueFile(String url, String fileName, String mimeType, boolean netcdf) {
|
2016-05-12 19:20:39 +02:00
|
|
|
super(ComputationValueType.File, url);
|
|
|
|
this.fileName = fileName;
|
|
|
|
this.mimeType = mimeType;
|
2017-11-09 18:04:16 +01:00
|
|
|
this.netcdf = netcdf;
|
2016-05-12 19:20:39 +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;
|
|
|
|
}
|
|
|
|
|
2017-11-09 18:04:16 +01:00
|
|
|
public boolean isNetcdf() {
|
|
|
|
return netcdf;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setNetcdf(boolean netcdf) {
|
|
|
|
this.netcdf = netcdf;
|
|
|
|
}
|
|
|
|
|
2016-05-12 19:20:39 +02:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2017-11-09 18:04:16 +01:00
|
|
|
return "ComputationValueFile [fileName=" + fileName + ", mimeType=" + mimeType + ", netcdf=" + netcdf + "]";
|
2016-05-12 19:20:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|