Add File Format Model

This commit is contained in:
George Kalampokis 2023-12-19 16:58:22 +02:00
parent 947b221736
commit 2707b0030a
2 changed files with 42 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import eu.eudat.file.transformer.model.DescriptionFileTransformerModel;
import eu.eudat.file.transformer.model.DmpFileTransformerModel; import eu.eudat.file.transformer.model.DmpFileTransformerModel;
import eu.eudat.file.transformer.model.ExtraPropertiesModel; import eu.eudat.file.transformer.model.ExtraPropertiesModel;
import eu.eudat.file.transformer.model.file.FileEnvelope; import eu.eudat.file.transformer.model.file.FileEnvelope;
import eu.eudat.file.transformer.model.file.FileFormat;
import javax.management.InvalidApplicationException; import javax.management.InvalidApplicationException;
import java.io.IOException; import java.io.IOException;
@ -17,5 +18,5 @@ public interface FileTransformerExecutor {
DescriptionFileTransformerModel importFileToDescription(FileEnvelope envelope); DescriptionFileTransformerModel importFileToDescription(FileEnvelope envelope);
List<String> getSupportedFileFormats(); List<FileFormat> getSupportedFileFormats();
} }

View File

@ -0,0 +1,40 @@
package eu.eudat.file.transformer.model.file;
public class FileFormat {
private String format;
private String formatName;
private String icon;
public FileFormat(String format, String formatName, String icon) {
this.format = format;
this.formatName = formatName;
this.icon = icon;
}
public FileFormat() {
}
public String getFormat() {
return format;
}
public void setFormat(String format) {
this.format = format;
}
public String getFormatName() {
return formatName;
}
public void setFormatName(String formatName) {
this.formatName = formatName;
}
public String getIcon() {
return icon;
}
public void setIcon(String icon) {
this.icon = icon;
}
}