2020-06-08 15:11:37 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
package eu.dnetlib.dhp.schema.dump.oaf;
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-08 15:11:37 +02:00
|
|
|
import java.io.Serializable;
|
|
|
|
|
2020-08-13 17:05:06 +02:00
|
|
|
/**
|
2020-08-13 18:23:24 +02:00
|
|
|
* To represent the information described by a scheme and a value in that scheme (i.e. pid). It has two parameters: -
|
|
|
|
* scheme of type String to store the scheme - value of type String to store the value in that scheme
|
2020-08-13 17:05:06 +02:00
|
|
|
*/
|
2020-06-08 15:11:37 +02:00
|
|
|
public class ControlledField implements Serializable {
|
2020-06-15 11:06:56 +02:00
|
|
|
private String scheme;
|
|
|
|
private String value;
|
2020-06-08 15:11:37 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public String getScheme() {
|
|
|
|
return scheme;
|
|
|
|
}
|
2020-06-08 15:11:37 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public void setScheme(String scheme) {
|
|
|
|
this.scheme = scheme;
|
|
|
|
}
|
2020-06-08 15:11:37 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public String getValue() {
|
|
|
|
return value;
|
|
|
|
}
|
2020-06-08 15:11:37 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public void setValue(String value) {
|
|
|
|
this.value = value;
|
|
|
|
}
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
public static ControlledField newInstance(String scheme, String value) {
|
|
|
|
ControlledField cf = new ControlledField();
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
cf.setScheme(scheme);
|
|
|
|
cf.setValue(value);
|
2020-06-09 15:37:46 +02:00
|
|
|
|
2020-06-15 11:06:56 +02:00
|
|
|
return cf;
|
|
|
|
}
|
2020-06-08 15:11:37 +02:00
|
|
|
}
|