2020-03-27 10:42:17 +01:00
|
|
|
package eu.dnetlib.dhp.oa.provision.model;
|
2020-01-24 08:17:53 +01:00
|
|
|
|
2020-04-06 17:34:25 +02:00
|
|
|
import com.google.common.base.Objects;
|
2020-02-13 16:53:27 +01:00
|
|
|
import eu.dnetlib.dhp.schema.oaf.Instance;
|
2020-01-24 08:17:53 +01:00
|
|
|
import eu.dnetlib.dhp.schema.oaf.KeyValue;
|
|
|
|
import eu.dnetlib.dhp.schema.oaf.Qualifier;
|
|
|
|
import eu.dnetlib.dhp.schema.oaf.StructuredProperty;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class RelatedEntity implements Serializable {
|
|
|
|
|
2020-01-30 17:46:29 +01:00
|
|
|
private String id;
|
|
|
|
private String type;
|
|
|
|
|
|
|
|
// common fields
|
|
|
|
private StructuredProperty title;
|
|
|
|
private String websiteurl; // datasource, organizations, projects
|
|
|
|
|
2020-01-24 08:17:53 +01:00
|
|
|
// results
|
|
|
|
private String dateofacceptance;
|
|
|
|
private String publisher;
|
|
|
|
private List<StructuredProperty> pid;
|
|
|
|
private String codeRepositoryUrl;
|
|
|
|
private Qualifier resulttype;
|
|
|
|
private List<KeyValue> collectedfrom;
|
2020-02-13 16:53:27 +01:00
|
|
|
private List<Instance> instances;
|
2020-01-24 08:17:53 +01:00
|
|
|
|
|
|
|
// datasource
|
|
|
|
private String officialname;
|
|
|
|
private Qualifier datasourcetype;
|
|
|
|
private Qualifier datasourcetypeui;
|
|
|
|
private Qualifier openairecompatibility;
|
2020-01-30 17:46:29 +01:00
|
|
|
//private String aggregatortype;
|
2020-01-24 08:17:53 +01:00
|
|
|
|
|
|
|
// organization
|
|
|
|
private String legalname;
|
|
|
|
private String legalshortname;
|
|
|
|
private Qualifier country;
|
|
|
|
|
|
|
|
// project
|
2020-01-30 17:46:29 +01:00
|
|
|
private String projectTitle;
|
2020-01-24 08:17:53 +01:00
|
|
|
private String code;
|
|
|
|
private String acronym;
|
|
|
|
private Qualifier contracttype;
|
2020-01-30 17:46:29 +01:00
|
|
|
private List<String> fundingtree;
|
|
|
|
|
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setId(String id) {
|
2020-01-30 17:46:29 +01:00
|
|
|
this.id = id;
|
2020-04-01 14:56:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setType(String type) {
|
|
|
|
this.type = type;
|
2020-01-30 17:46:29 +01:00
|
|
|
}
|
2020-01-24 08:17:53 +01:00
|
|
|
|
|
|
|
public StructuredProperty getTitle() {
|
|
|
|
return title;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setTitle(StructuredProperty title) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.title = title;
|
2020-04-01 14:56:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getWebsiteurl() {
|
|
|
|
return websiteurl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setWebsiteurl(String websiteurl) {
|
|
|
|
this.websiteurl = websiteurl;
|
2020-01-24 08:17:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getDateofacceptance() {
|
|
|
|
return dateofacceptance;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setDateofacceptance(String dateofacceptance) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.dateofacceptance = dateofacceptance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getPublisher() {
|
|
|
|
return publisher;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setPublisher(String publisher) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.publisher = publisher;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<StructuredProperty> getPid() {
|
|
|
|
return pid;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setPid(List<StructuredProperty> pid) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.pid = pid;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getCodeRepositoryUrl() {
|
|
|
|
return codeRepositoryUrl;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setCodeRepositoryUrl(String codeRepositoryUrl) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.codeRepositoryUrl = codeRepositoryUrl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Qualifier getResulttype() {
|
|
|
|
return resulttype;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setResulttype(Qualifier resulttype) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.resulttype = resulttype;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<KeyValue> getCollectedfrom() {
|
|
|
|
return collectedfrom;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setCollectedfrom(List<KeyValue> collectedfrom) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.collectedfrom = collectedfrom;
|
|
|
|
}
|
|
|
|
|
2020-02-13 16:53:27 +01:00
|
|
|
public List<Instance> getInstances() {
|
|
|
|
return instances;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setInstances(List<Instance> instances) {
|
2020-02-13 16:53:27 +01:00
|
|
|
this.instances = instances;
|
|
|
|
}
|
|
|
|
|
2020-01-24 08:17:53 +01:00
|
|
|
public String getOfficialname() {
|
|
|
|
return officialname;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setOfficialname(String officialname) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.officialname = officialname;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Qualifier getDatasourcetype() {
|
|
|
|
return datasourcetype;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setDatasourcetype(Qualifier datasourcetype) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.datasourcetype = datasourcetype;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Qualifier getDatasourcetypeui() {
|
|
|
|
return datasourcetypeui;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setDatasourcetypeui(Qualifier datasourcetypeui) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.datasourcetypeui = datasourcetypeui;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Qualifier getOpenairecompatibility() {
|
|
|
|
return openairecompatibility;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setOpenairecompatibility(Qualifier openairecompatibility) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.openairecompatibility = openairecompatibility;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLegalname() {
|
|
|
|
return legalname;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setLegalname(String legalname) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.legalname = legalname;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLegalshortname() {
|
|
|
|
return legalshortname;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setLegalshortname(String legalshortname) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.legalshortname = legalshortname;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Qualifier getCountry() {
|
|
|
|
return country;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setCountry(Qualifier country) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.country = country;
|
2020-04-01 14:56:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getProjectTitle() {
|
|
|
|
return projectTitle;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setProjectTitle(String projectTitle) {
|
|
|
|
this.projectTitle = projectTitle;
|
2020-01-24 08:17:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
return code;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setCode(String code) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.code = code;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getAcronym() {
|
|
|
|
return acronym;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setAcronym(String acronym) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.acronym = acronym;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Qualifier getContracttype() {
|
|
|
|
return contracttype;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setContracttype(Qualifier contracttype) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.contracttype = contracttype;
|
|
|
|
}
|
|
|
|
|
2020-01-30 17:46:29 +01:00
|
|
|
public List<String> getFundingtree() {
|
2020-01-24 08:17:53 +01:00
|
|
|
return fundingtree;
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:56:57 +02:00
|
|
|
public void setFundingtree(List<String> fundingtree) {
|
2020-01-24 08:17:53 +01:00
|
|
|
this.fundingtree = fundingtree;
|
|
|
|
}
|
2020-04-06 17:34:25 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean equals(Object o) {
|
|
|
|
if (this == o) return true;
|
|
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
RelatedEntity that = (RelatedEntity) o;
|
|
|
|
return Objects.equal(id, that.id) &&
|
|
|
|
Objects.equal(type, that.type) &&
|
|
|
|
Objects.equal(title, that.title) &&
|
|
|
|
Objects.equal(websiteurl, that.websiteurl) &&
|
|
|
|
Objects.equal(dateofacceptance, that.dateofacceptance) &&
|
|
|
|
Objects.equal(publisher, that.publisher) &&
|
|
|
|
Objects.equal(pid, that.pid) &&
|
|
|
|
Objects.equal(codeRepositoryUrl, that.codeRepositoryUrl) &&
|
|
|
|
Objects.equal(resulttype, that.resulttype) &&
|
|
|
|
Objects.equal(collectedfrom, that.collectedfrom) &&
|
|
|
|
Objects.equal(instances, that.instances) &&
|
|
|
|
Objects.equal(officialname, that.officialname) &&
|
|
|
|
Objects.equal(datasourcetype, that.datasourcetype) &&
|
|
|
|
Objects.equal(datasourcetypeui, that.datasourcetypeui) &&
|
|
|
|
Objects.equal(openairecompatibility, that.openairecompatibility) &&
|
|
|
|
Objects.equal(legalname, that.legalname) &&
|
|
|
|
Objects.equal(legalshortname, that.legalshortname) &&
|
|
|
|
Objects.equal(country, that.country) &&
|
|
|
|
Objects.equal(projectTitle, that.projectTitle) &&
|
|
|
|
Objects.equal(code, that.code) &&
|
|
|
|
Objects.equal(acronym, that.acronym) &&
|
|
|
|
Objects.equal(contracttype, that.contracttype) &&
|
|
|
|
Objects.equal(fundingtree, that.fundingtree);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int hashCode() {
|
|
|
|
return Objects.hashCode(id, type, title, websiteurl, dateofacceptance, publisher, pid, codeRepositoryUrl, resulttype, collectedfrom, instances, officialname, datasourcetype, datasourcetypeui, openairecompatibility, legalname, legalshortname, country, projectTitle, code, acronym, contracttype, fundingtree);
|
|
|
|
}
|
2020-01-30 17:46:29 +01:00
|
|
|
}
|