dnet-hadoop/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Project.java

79 lines
1.3 KiB
Java
Raw Normal View History

package eu.dnetlib.dhp.schema.dump.oaf.community;
import java.io.Serializable;
import eu.dnetlib.dhp.schema.dump.oaf.Provenance;
public class Project implements Serializable {
2020-06-15 11:06:56 +02:00
private String id;// OpenAIRE id
private String code;
2020-06-15 11:06:56 +02:00
private String acronym;
2020-06-15 11:06:56 +02:00
private String title;
2020-06-15 11:06:56 +02:00
private Funder funder;
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-15 11:06:56 +02:00
public void setId(String id) {
this.id = id;
}
2020-06-15 11:06:56 +02:00
public String getCode() {
return code;
}
2020-06-15 11:06:56 +02:00
public void setCode(String code) {
this.code = code;
}
2020-06-15 11:06:56 +02:00
public String getAcronym() {
return acronym;
}
2020-06-15 11:06:56 +02:00
public void setAcronym(String acronym) {
this.acronym = acronym;
}
2020-06-15 11:06:56 +02:00
public String getTitle() {
return title;
}
2020-06-15 11:06:56 +02:00
public void setTitle(String title) {
this.title = title;
}
2020-06-15 11:06:56 +02:00
public Funder getFunder() {
return funder;
}
2020-06-15 11:06:56 +02:00
public void setFunder(Funder funders) {
this.funder = funders;
}
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
}
}