30 lines
793 B
Java
30 lines
793 B
Java
package eu.eudat.models.data.rda;
|
|
|
|
public class DatasetTechnicalResourceRDAExportModel {
|
|
private String description;
|
|
private String name;
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public DatasetTechnicalResourceRDAExportModel fromDataModel(String key, Object value) {
|
|
DatasetTechnicalResourceRDAExportModel technicalResource = new DatasetTechnicalResourceRDAExportModel();
|
|
if (key.contains("description"))
|
|
technicalResource.setDescription(value.toString());
|
|
else if (key.contains("name"))
|
|
technicalResource.setName(value.toString());
|
|
return technicalResource;
|
|
}
|
|
}
|