2020-06-08 15:11:37 +02:00
|
|
|
|
|
|
|
package eu.dnetlib.dhp.schema.dump.oaf;
|
|
|
|
|
2020-08-13 17:05:06 +02:00
|
|
|
/**
|
|
|
|
* Represents the country associated to this result. It extends eu.dnetlib.dhp.schema.dump.oaf.Qualifier with a
|
|
|
|
* provenance parameter of type eu.dnetlib.dhp.schema.dumo.oaf.Provenance. The country in not mapped if its value in
|
|
|
|
* the result reprensented in the internal format is Unknown. The value for this element correspond to:
|
|
|
|
* - code corresponds to the classid of eu.dnetlib.dhp.schema.oaf.Country
|
|
|
|
* - label corresponds to the classname of eu.dnetlib.dhp.schema.oaf.Country
|
|
|
|
* - provenance set only if the dataInfo associated to the Country of the result to be dumped is not null. In this case :
|
|
|
|
* - provenance corresponds to dataInfo.provenanceaction.classid (to be modified with datainfo.provenanceaction.classname)
|
|
|
|
* - trust corresponds to dataInfo.trust
|
|
|
|
*/
|
2020-06-08 15:11:37 +02:00
|
|
|
public class Country extends Qualifier {
|
|
|
|
|
2020-07-20 17:46:27 +02:00
|
|
|
private Provenance provenance;
|
2020-06-08 15:11:37 +02:00
|
|
|
|
2020-07-20 17:46:27 +02:00
|
|
|
public Provenance getProvenance() {
|
2020-06-08 15:11:37 +02:00
|
|
|
return provenance;
|
|
|
|
}
|
|
|
|
|
2020-07-20 17:46:27 +02:00
|
|
|
public void setProvenance(Provenance provenance) {
|
2020-06-08 15:11:37 +02:00
|
|
|
this.provenance = provenance;
|
|
|
|
}
|
|
|
|
|
2020-07-20 17:46:27 +02:00
|
|
|
public static Country newInstance(String code, String label, Provenance provenance) {
|
2020-06-15 11:06:56 +02:00
|
|
|
Country c = new Country();
|
|
|
|
c.setProvenance(provenance);
|
|
|
|
c.setCode(code);
|
|
|
|
c.setLabel(label);
|
|
|
|
return c;
|
|
|
|
}
|
2020-06-08 15:11:37 +02:00
|
|
|
|
2020-07-24 17:23:57 +02:00
|
|
|
public static Country newInstance(String code, String label, String provenance, String trust) {
|
2020-07-20 17:46:27 +02:00
|
|
|
return newInstance(code, label, Provenance.newInstance(provenance, trust));
|
|
|
|
}
|
|
|
|
|
2020-06-08 15:11:37 +02:00
|
|
|
}
|