47 lines
1.1 KiB
Java
47 lines
1.1 KiB
Java
|
package eu.eudat.models.data.quickwizard;
|
||
|
|
||
|
|
||
|
import eu.eudat.models.data.grant.Grant;
|
||
|
|
||
|
public class GrantQuickWizardModel {
|
||
|
private String label;
|
||
|
private String description;
|
||
|
private Grant existGrant;
|
||
|
|
||
|
|
||
|
public String getLabel() {
|
||
|
return label;
|
||
|
}
|
||
|
|
||
|
public void setLabel(String label) {
|
||
|
this.label = label;
|
||
|
}
|
||
|
|
||
|
public String getDescription() {
|
||
|
return description;
|
||
|
}
|
||
|
|
||
|
public void setDescription(String description) {
|
||
|
this.description = description;
|
||
|
}
|
||
|
|
||
|
public Grant getExistGrant() {
|
||
|
return existGrant;
|
||
|
}
|
||
|
|
||
|
public void setExistGrant(Grant existGrant) {
|
||
|
this.existGrant = existGrant;
|
||
|
}
|
||
|
|
||
|
public eu.eudat.models.data.grant.Grant toDataGrant(){
|
||
|
eu.eudat.models.data.grant.Grant toGrant = new eu.eudat.models.data.grant.Grant();
|
||
|
toGrant.setAbbreviation("");
|
||
|
toGrant.setLabel(this.label);
|
||
|
toGrant.setReference("dmp:" + this.label);
|
||
|
toGrant.setUri("");
|
||
|
toGrant.setDefinition("");
|
||
|
toGrant.setDescription(this.description);
|
||
|
return toGrant;
|
||
|
}
|
||
|
}
|