2021-04-23 12:15:36 +02:00
|
|
|
|
|
|
|
package eu.dnetlib.dhp.schema.dump.oaf;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
2021-11-18 11:01:44 +01:00
|
|
|
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
|
|
|
|
2021-04-23 12:15:36 +02:00
|
|
|
/**
|
|
|
|
* Indicates the process that produced (or provided) the information, and the trust associated to the information. It
|
|
|
|
* has two parameters: - provenance of type String to store the provenance of the information, - trust of type String to
|
|
|
|
* store the trust associated to the information
|
|
|
|
*/
|
|
|
|
public class Provenance implements Serializable {
|
|
|
|
private String provenance;
|
|
|
|
private String trust;
|
|
|
|
|
|
|
|
public String getProvenance() {
|
|
|
|
return provenance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setProvenance(String provenance) {
|
|
|
|
this.provenance = provenance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getTrust() {
|
|
|
|
return trust;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTrust(String trust) {
|
|
|
|
this.trust = trust;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static Provenance newInstance(String provenance, String trust) {
|
|
|
|
Provenance p = new Provenance();
|
|
|
|
p.provenance = provenance;
|
|
|
|
p.trust = trust;
|
|
|
|
return p;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString() {
|
|
|
|
return provenance + trust;
|
|
|
|
}
|
|
|
|
}
|