59 lines
1.4 KiB
Java
59 lines
1.4 KiB
Java
package eu.eudat.commons.types.descriptiontemplate.importexport.fielddata;
|
|
|
|
import jakarta.xml.bind.annotation.*;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
public class UploadDataImportExport extends BaseFieldDataImportExport {
|
|
public static final String XmlElementName = "uploadData";
|
|
@XmlElementWrapper(name = "types")
|
|
@XmlElement(name = "type")
|
|
private List<UploadDataOption> types;
|
|
|
|
@XmlAttribute(name = "maxFileSizeInMB")
|
|
private Integer maxFileSizeInMB;
|
|
|
|
public List<UploadDataOption> getTypes() {
|
|
return types;
|
|
}
|
|
|
|
public void setTypes(List<UploadDataOption> types) {
|
|
this.types = types;
|
|
}
|
|
|
|
public Integer getMaxFileSizeInMB() {
|
|
return maxFileSizeInMB;
|
|
}
|
|
|
|
public void setMaxFileSizeInMB(Integer maxFileSizeInMB) {
|
|
this.maxFileSizeInMB = maxFileSizeInMB;
|
|
}
|
|
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
public static class UploadDataOption {
|
|
@XmlAttribute(name = "label")
|
|
private String label;
|
|
@XmlAttribute(name = "value")
|
|
private String value;
|
|
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
|
|
public void setLabel(String label) {
|
|
this.label = label;
|
|
}
|
|
|
|
public String getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setValue(String value) {
|
|
this.value = value;
|
|
}
|
|
}
|
|
}
|
|
|