forked from D-Net/dnet-hadoop
changed the name od the pid: from pid to id
This commit is contained in:
parent
34973615ec
commit
150dd27431
|
@ -4,15 +4,15 @@ package eu.dnetlib.dhp.schema.dump.oaf;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
public class Pid implements Serializable {
|
public class Pid implements Serializable {
|
||||||
private ControlledField pid;
|
private ControlledField id;
|
||||||
private Provenance provenance;
|
private Provenance provenance;
|
||||||
|
|
||||||
public ControlledField getPid() {
|
public ControlledField getId() {
|
||||||
return pid;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPid(ControlledField pid) {
|
public void setId(ControlledField pid) {
|
||||||
this.pid = pid;
|
this.id = pid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Provenance getProvenance() {
|
public Provenance getProvenance() {
|
||||||
|
@ -22,4 +22,19 @@ public class Pid implements Serializable {
|
||||||
public void setProvenance(Provenance provenance) {
|
public void setProvenance(Provenance provenance) {
|
||||||
this.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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue