2020-06-09 15:37:46 +02:00
|
|
|
|
2020-07-20 17:46:27 +02:00
|
|
|
package eu.dnetlib.dhp.schema.dump.oaf.community;
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-07-24 17:21:48 +02:00
|
|
|
import java.io.Serializable;
|
|
|
|
|
2020-07-20 17:46:27 +02:00
|
|
|
import eu.dnetlib.dhp.schema.dump.oaf.Provenance;
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-08-13 17:06:49 +02:00
|
|
|
/**
|
2020-08-13 17:17:49 +02:00
|
|
|
* To store information about the project related to the result. This information is not directly mapped from the result
|
|
|
|
* represented in the internal model because it is not there. The mapped result will be enriched with project information
|
|
|
|
* derived by relation between results and projects. Project class has the following parameters:
|
2020-08-13 17:06:49 +02:00
|
|
|
* - id of type String to store the OpenAIRE id for the Project
|
|
|
|
* - code of type String to store the grant agreement
|
|
|
|
* - acronym of type String to store the acronym for the project
|
|
|
|
* - title of type String to store the title of the project
|
2020-08-13 17:17:49 +02:00
|
|
|
* - funder of type eu.dnetlib.dhp.schema.dump.oaf.community.Funder to store information about the funder funding
|
|
|
|
* the project
|
|
|
|
* - provenance of type eu.dnetlib.dhp.schema.dump.oaf.Provenance to store information about the. provenance of the
|
|
|
|
* association between the result and the project
|
2020-08-13 17:06:49 +02:00
|
|
|
*/
|
2020-07-20 17:46:27 +02:00
|
|
|
public class Project implements Serializable {
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
private String id;// OpenAIRE id
|
|
|
|
private String code;
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
private String acronym;
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
private String title;
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
private Funder funder;
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-07-20 17:46:27 +02:00
|
|
|
private Provenance provenance;
|
|
|
|
|
|
|
|
public Provenance getProvenance() {
|
|
|
|
return provenance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setProvenance(Provenance provenance) {
|
|
|
|
this.provenance = provenance;
|
|
|
|
}
|
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public void setId(String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public String getCode() {
|
|
|
|
return code;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public void setCode(String code) {
|
|
|
|
this.code = code;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public String getAcronym() {
|
|
|
|
return acronym;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public void setAcronym(String acronym) {
|
|
|
|
this.acronym = acronym;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public String getTitle() {
|
|
|
|
return title;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public void setTitle(String title) {
|
|
|
|
this.title = title;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public Funder getFunder() {
|
|
|
|
return funder;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public void setFunder(Funder funders) {
|
|
|
|
this.funder = funders;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-07-20 17:46:27 +02:00
|
|
|
public static Project newInstance(String id, String code, String acronym, String title, Funder funder) {
|
|
|
|
Project project = new Project();
|
|
|
|
project.setAcronym(acronym);
|
|
|
|
project.setCode(code);
|
|
|
|
project.setFunder(funder);
|
|
|
|
project.setId(id);
|
|
|
|
project.setTitle(title);
|
|
|
|
return project;
|
2020-06-15 11:06:56 +02:00
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
}
|