144 lines
2.6 KiB
Java
144 lines
2.6 KiB
Java
|
|
package eu.dnetlib.dhp.schema.oaf;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.*;
|
|
import java.util.stream.Collectors;
|
|
|
|
public abstract class Entity extends Oaf implements Serializable {
|
|
|
|
private String id;
|
|
|
|
private List<String> originalId;
|
|
|
|
/**
|
|
* The list of datasource id/name pairs providing this Oaf.
|
|
*/
|
|
private List<KeyValue> collectedfrom;
|
|
|
|
private Long lastupdatetimestamp;
|
|
|
|
private List<StructuredProperty> pid;
|
|
|
|
private String dateofcollection;
|
|
|
|
private String dateoftransformation;
|
|
|
|
/**
|
|
* The Measures.
|
|
*/
|
|
private List<Measure> measures;
|
|
|
|
private List<ExtraInfo> extraInfo;
|
|
|
|
private EntityDataInfo dataInfo;
|
|
|
|
public List<KeyValue> getCollectedfrom() {
|
|
return collectedfrom;
|
|
}
|
|
|
|
public void setCollectedfrom(List<KeyValue> collectedfrom) {
|
|
this.collectedfrom = collectedfrom;
|
|
}
|
|
|
|
public Long getLastupdatetimestamp() {
|
|
return lastupdatetimestamp;
|
|
}
|
|
|
|
public void setLastupdatetimestamp(Long lastupdatetimestamp) {
|
|
this.lastupdatetimestamp = lastupdatetimestamp;
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public List<String> getOriginalId() {
|
|
return originalId;
|
|
}
|
|
|
|
public void setOriginalId(List<String> originalId) {
|
|
this.originalId = originalId;
|
|
}
|
|
|
|
public List<StructuredProperty> getPid() {
|
|
return pid;
|
|
}
|
|
|
|
public void setPid(List<StructuredProperty> pid) {
|
|
this.pid = pid;
|
|
}
|
|
|
|
public String getDateofcollection() {
|
|
return dateofcollection;
|
|
}
|
|
|
|
public void setDateofcollection(String dateofcollection) {
|
|
this.dateofcollection = dateofcollection;
|
|
}
|
|
|
|
public String getDateoftransformation() {
|
|
return dateoftransformation;
|
|
}
|
|
|
|
/**
|
|
* Gets measures.
|
|
*
|
|
* @return the measures
|
|
*/
|
|
public List<Measure> getMeasures() {
|
|
return measures;
|
|
}
|
|
|
|
/**
|
|
* Sets measures.
|
|
*
|
|
* @param measures the measures
|
|
*/
|
|
public void setMeasures(List<Measure> measures) {
|
|
this.measures = measures;
|
|
}
|
|
|
|
public void setDateoftransformation(String dateoftransformation) {
|
|
this.dateoftransformation = dateoftransformation;
|
|
}
|
|
|
|
public List<ExtraInfo> getExtraInfo() {
|
|
return extraInfo;
|
|
}
|
|
|
|
public void setExtraInfo(List<ExtraInfo> extraInfo) {
|
|
this.extraInfo = extraInfo;
|
|
}
|
|
|
|
public EntityDataInfo getDataInfo() {
|
|
return dataInfo;
|
|
}
|
|
|
|
public void setDataInfo(EntityDataInfo dataInfo) {
|
|
this.dataInfo = dataInfo;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o)
|
|
return true;
|
|
if (o == null || getClass() != o.getClass())
|
|
return false;
|
|
if (!super.equals(o))
|
|
return false;
|
|
Entity oafEntity = (Entity) o;
|
|
return Objects.equals(id, oafEntity.id);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(super.hashCode(), id);
|
|
}
|
|
|
|
}
|