dnet-hadoop/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/ControlledField.java

41 lines
837 B
Java
Raw Normal View History

2020-06-15 11:06:56 +02:00
package eu.dnetlib.dhp.schema.dump.oaf;
import java.io.Serializable;
2020-08-13 17:05:06 +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
*/
public class ControlledField implements Serializable {
2020-06-15 11:06:56 +02:00
private String scheme;
private String value;
2020-06-15 11:06:56 +02:00
public String getScheme() {
return scheme;
}
2020-06-15 11:06:56 +02:00
public void setScheme(String scheme) {
this.scheme = scheme;
}
2020-06-15 11:06:56 +02:00
public String getValue() {
return value;
}
2020-06-15 11:06:56 +02:00
public void setValue(String value) {
this.value = value;
}
2020-06-15 11:06:56 +02:00
public static ControlledField newInstance(String scheme, String value) {
ControlledField cf = new ControlledField();
2020-06-15 11:06:56 +02:00
cf.setScheme(scheme);
cf.setValue(value);
2020-06-15 11:06:56 +02:00
return cf;
}
}