dnet-hadoop/dhp-common/src/main/java/eu/dnetlib/dhp/model/mdstore/Provenance.java

53 lines
1.1 KiB
Java
Raw Normal View History

2019-04-03 16:05:16 +02:00
package eu.dnetlib.dhp.model.mdstore;
import java.io.Serializable;
/**
* @author Sandro La Bruzzo
* <p>
* Provenace class models the provenance of the record in the metadataStore It contains the identifier and the
* name of the datasource that gives the record
2019-04-03 16:05:16 +02:00
*/
public class Provenance implements Serializable {
private String datasourceId;
2019-04-03 16:05:16 +02:00
private String datasourceName;
2019-04-03 16:05:16 +02:00
private String nsPrefix;
2019-04-03 16:05:16 +02:00
public Provenance() {
}
2019-04-03 16:05:16 +02:00
public Provenance(String datasourceId, String datasourceName, String nsPrefix) {
this.datasourceId = datasourceId;
this.datasourceName = datasourceName;
this.nsPrefix = nsPrefix;
}
2019-04-03 16:05:16 +02:00
public String getDatasourceId() {
return datasourceId;
}
2019-04-03 16:05:16 +02:00
public void setDatasourceId(String datasourceId) {
this.datasourceId = datasourceId;
}
2019-04-03 16:05:16 +02:00
public String getDatasourceName() {
return datasourceName;
}
2019-04-03 16:05:16 +02:00
public void setDatasourceName(String datasourceName) {
this.datasourceName = datasourceName;
}
2019-04-03 16:05:16 +02:00
public String getNsPrefix() {
return nsPrefix;
}
2019-04-03 16:05:16 +02:00
public void setNsPrefix(String nsPrefix) {
this.nsPrefix = nsPrefix;
}
2019-04-03 16:05:16 +02:00
}