1
0
Fork 0

changed the name od the pid: from pid to id

This commit is contained in:
Miriam Baglioni 2020-08-07 15:29:13 +02:00
parent 34973615ec
commit 150dd27431
1 changed files with 20 additions and 5 deletions

View File

@ -4,15 +4,15 @@ package eu.dnetlib.dhp.schema.dump.oaf;
import java.io.Serializable;
public class Pid implements Serializable {
private ControlledField pid;
private ControlledField id;
private Provenance provenance;
public ControlledField getPid() {
return pid;
public ControlledField getId() {
return id;
}
public void setPid(ControlledField pid) {
this.pid = pid;
public void setId(ControlledField pid) {
this.id = pid;
}
public Provenance getProvenance() {
@ -22,4 +22,19 @@ public class Pid implements Serializable {
public void setProvenance(Provenance provenance) {
this.provenance = provenance;
}
public static Pid newInstance(ControlledField pid, Provenance provenance) {
Pid p = new Pid();
p.id = pid;
p.provenance = provenance;
return p;
}
public static Pid newInstance(ControlledField pid) {
Pid p = new Pid();
p.id = pid;
return p;
}
}