2020-07-24 17:23:57 +02:00
|
|
|
|
2020-07-20 17:46:27 +02:00
|
|
|
package eu.dnetlib.dhp.schema.dump.oaf;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
2020-08-13 17:05:06 +02:00
|
|
|
/**
|
2020-08-13 17:17:49 +02:00
|
|
|
* Indicates the process that produced (or provided) the information, and the trust associated to the information.
|
|
|
|
* It has two parameters:
|
2020-08-13 17:05:06 +02:00
|
|
|
* - provenance of type String to store the provenance of the information,
|
|
|
|
* - trust of type String to store the trust associated to the information
|
|
|
|
*/
|
2020-07-24 17:23:57 +02:00
|
|
|
public class Provenance implements Serializable {
|
|
|
|
private String provenance;
|
|
|
|
private String trust;
|
|
|
|
|
|
|
|
public String getProvenance() {
|
|
|
|
return provenance;
|
|
|
|
}
|
2020-07-20 17:46:27 +02:00
|
|
|
|
2020-07-24 17:23:57 +02:00
|
|
|
public void setProvenance(String provenance) {
|
|
|
|
this.provenance = provenance;
|
|
|
|
}
|
2020-07-20 17:46:27 +02:00
|
|
|
|
2020-07-24 17:23:57 +02:00
|
|
|
public String getTrust() {
|
|
|
|
return trust;
|
|
|
|
}
|
2020-07-20 17:46:27 +02:00
|
|
|
|
2020-07-24 17:23:57 +02:00
|
|
|
public void setTrust(String trust) {
|
|
|
|
this.trust = trust;
|
|
|
|
}
|
2020-07-20 17:46:27 +02:00
|
|
|
|
2020-07-24 17:23:57 +02:00
|
|
|
public static Provenance newInstance(String provenance, String trust) {
|
|
|
|
Provenance p = new Provenance();
|
|
|
|
p.provenance = provenance;
|
|
|
|
p.trust = trust;
|
|
|
|
return p;
|
|
|
|
}
|
2020-07-20 17:46:27 +02:00
|
|
|
|
2020-07-29 16:57:45 +02:00
|
|
|
public String toString() {
|
2020-07-24 17:23:57 +02:00
|
|
|
return provenance + trust;
|
|
|
|
}
|
2020-07-20 17:46:27 +02:00
|
|
|
}
|