package eu.dnetlib.dhp.schema.oaf; import java.io.Serializable; import java.util.List; public class Project extends OafEntity implements Serializable { private Field websiteurl; private Field code; private Field acronym; private Field title; private Field startdate; private Field enddate; private Field callidentifier; private Field keywords; private Field duration; private Field ecsc39; private Field oamandatepublications; private Field ecarticle29_3; private List subjects; private List> fundingtree; private Qualifier contracttype; private Field optional1; private Field optional2; private Field jsonextrainfo; private Field contactfullname; private Field contactfax; private Field contactphone; private Field contactemail; private Field summary; private Field currency; private Float totalcost; private Float fundedamount; private String h2020topiccode; private String h2020topicdescription; private List h2020classification; public String getH2020topicdescription() { return h2020topicdescription; } public void setH2020topicdescription(String h2020topicdescription) { this.h2020topicdescription = h2020topicdescription; } public String getH2020topiccode() { return h2020topiccode; } public void setH2020topiccode(String h2020topiccode) { this.h2020topiccode = h2020topiccode; } public List getH2020classification() { return h2020classification; } public void setH2020classification(List h2020classification) { this.h2020classification = h2020classification; } public Field getWebsiteurl() { return websiteurl; } public void setWebsiteurl(Field websiteurl) { this.websiteurl = websiteurl; } public Field getCode() { return code; } public void setCode(Field code) { this.code = code; } public Field getAcronym() { return acronym; } public void setAcronym(Field acronym) { this.acronym = acronym; } public Field getTitle() { return title; } public void setTitle(Field title) { this.title = title; } public Field getStartdate() { return startdate; } public void setStartdate(Field startdate) { this.startdate = startdate; } public Field getEnddate() { return enddate; } public void setEnddate(Field enddate) { this.enddate = enddate; } public Field getCallidentifier() { return callidentifier; } public void setCallidentifier(Field callidentifier) { this.callidentifier = callidentifier; } public Field getKeywords() { return keywords; } public void setKeywords(Field keywords) { this.keywords = keywords; } public Field getDuration() { return duration; } public void setDuration(Field duration) { this.duration = duration; } public Field getEcsc39() { return ecsc39; } public void setEcsc39(Field ecsc39) { this.ecsc39 = ecsc39; } public Field getOamandatepublications() { return oamandatepublications; } public void setOamandatepublications(Field oamandatepublications) { this.oamandatepublications = oamandatepublications; } public Field getEcarticle29_3() { return ecarticle29_3; } public void setEcarticle29_3(Field ecarticle29_3) { this.ecarticle29_3 = ecarticle29_3; } public List getSubjects() { return subjects; } public void setSubjects(List subjects) { this.subjects = subjects; } public List> getFundingtree() { return fundingtree; } public void setFundingtree(List> fundingtree) { this.fundingtree = fundingtree; } public Qualifier getContracttype() { return contracttype; } public void setContracttype(Qualifier contracttype) { this.contracttype = contracttype; } public Field getOptional1() { return optional1; } public void setOptional1(Field optional1) { this.optional1 = optional1; } public Field getOptional2() { return optional2; } public void setOptional2(Field optional2) { this.optional2 = optional2; } public Field getJsonextrainfo() { return jsonextrainfo; } public void setJsonextrainfo(Field jsonextrainfo) { this.jsonextrainfo = jsonextrainfo; } public Field getContactfullname() { return contactfullname; } public void setContactfullname(Field contactfullname) { this.contactfullname = contactfullname; } public Field getContactfax() { return contactfax; } public void setContactfax(Field contactfax) { this.contactfax = contactfax; } public Field getContactphone() { return contactphone; } public void setContactphone(Field contactphone) { this.contactphone = contactphone; } public Field getContactemail() { return contactemail; } public void setContactemail(Field contactemail) { this.contactemail = contactemail; } public Field getSummary() { return summary; } public void setSummary(Field summary) { this.summary = summary; } public Field getCurrency() { return currency; } public void setCurrency(Field currency) { this.currency = currency; } public Float getTotalcost() { return totalcost; } public void setTotalcost(Float totalcost) { this.totalcost = totalcost; } public Float getFundedamount() { return fundedamount; } public void setFundedamount(Float fundedamount) { this.fundedamount = fundedamount; } @Override public void mergeFrom(OafEntity e) { super.mergeFrom(e); if (!Project.class.isAssignableFrom(e.getClass())) { return; } Project p = (Project) e; websiteurl = p.getWebsiteurl() != null && compareTrust(this, e) < 0 ? p.getWebsiteurl() : websiteurl; code = p.getCode() != null && compareTrust(this, e) < 0 ? p.getCode() : code; acronym = p.getAcronym() != null && compareTrust(this, e) < 0 ? p.getAcronym() : acronym; title = p.getTitle() != null && compareTrust(this, e) < 0 ? p.getTitle() : title; startdate = p.getStartdate() != null && compareTrust(this, e) < 0 ? p.getStartdate() : startdate; enddate = p.getEnddate() != null && compareTrust(this, e) < 0 ? p.getEnddate() : enddate; callidentifier = p.getCallidentifier() != null && compareTrust(this, e) < 0 ? p.getCallidentifier() : callidentifier; keywords = p.getKeywords() != null && compareTrust(this, e) < 0 ? p.getKeywords() : keywords; duration = p.getDuration() != null && compareTrust(this, e) < 0 ? p.getDuration() : duration; ecsc39 = p.getEcsc39() != null && compareTrust(this, e) < 0 ? p.getEcsc39() : ecsc39; oamandatepublications = p.getOamandatepublications() != null && compareTrust(this, e) < 0 ? p.getOamandatepublications() : oamandatepublications; ecarticle29_3 = p.getEcarticle29_3() != null && compareTrust(this, e) < 0 ? p.getEcarticle29_3() : ecarticle29_3; subjects = mergeLists(subjects, p.getSubjects()); fundingtree = mergeLists(fundingtree, p.getFundingtree()); contracttype = p.getContracttype() != null && compareTrust(this, e) < 0 ? p.getContracttype() : contracttype; optional1 = p.getOptional1() != null && compareTrust(this, e) < 0 ? p.getOptional1() : optional1; optional2 = p.getOptional2() != null && compareTrust(this, e) < 0 ? p.getOptional2() : optional2; jsonextrainfo = p.getJsonextrainfo() != null && compareTrust(this, e) < 0 ? p.getJsonextrainfo() : jsonextrainfo; contactfullname = p.getContactfullname() != null && compareTrust(this, e) < 0 ? p.getContactfullname() : contactfullname; contactfax = p.getContactfax() != null && compareTrust(this, e) < 0 ? p.getContactfax() : contactfax; contactphone = p.getContactphone() != null && compareTrust(this, e) < 0 ? p.getContactphone() : contactphone; contactemail = p.getContactemail() != null && compareTrust(this, e) < 0 ? p.getContactemail() : contactemail; summary = p.getSummary() != null && compareTrust(this, e) < 0 ? p.getSummary() : summary; currency = p.getCurrency() != null && compareTrust(this, e) < 0 ? p.getCurrency() : currency; totalcost = p.getTotalcost() != null && compareTrust(this, e) < 0 ? p.getTotalcost() : totalcost; fundedamount = p.getFundedamount() != null && compareTrust(this, e) < 0 ? p.getFundedamount() : fundedamount; h2020classification = mergeLists(h2020classification, p.getH2020classification()); mergeOAFDataInfo(e); } }