2017-12-21 10:26:11 +01:00
|
|
|
package eu.eudat.models.datasetprofile;
|
|
|
|
|
|
|
|
import eu.eudat.entities.DatasetProfile;
|
|
|
|
import eu.eudat.models.DataModel;
|
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
2018-02-01 10:08:06 +01:00
|
|
|
|
2018-02-16 08:45:18 +01:00
|
|
|
public class DatasetProfileAutocompleteItem implements DataModel<DatasetProfile,DatasetProfileAutocompleteItem> {
|
2017-12-21 10:26:11 +01:00
|
|
|
|
|
|
|
private UUID id;
|
|
|
|
|
|
|
|
private String label;
|
|
|
|
|
|
|
|
public UUID getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(UUID id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLabel() {
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLabel(String label) {
|
|
|
|
this.label = label;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2018-02-16 08:45:18 +01:00
|
|
|
public DatasetProfileAutocompleteItem fromDataModel(DatasetProfile entity) {
|
2017-12-21 10:26:11 +01:00
|
|
|
this.id = entity.getId();
|
|
|
|
this.label = entity.getLabel();
|
2018-02-16 08:45:18 +01:00
|
|
|
return this;
|
2017-12-21 10:26:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public DatasetProfile toDataModel() {
|
|
|
|
DatasetProfile profile = new DatasetProfile();
|
|
|
|
profile.setId(this.id);
|
|
|
|
return profile;
|
|
|
|
}
|
2018-01-19 10:31:05 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getHint() {
|
|
|
|
return null;
|
|
|
|
}
|
2017-12-21 10:26:11 +01:00
|
|
|
}
|