2021-11-18 11:49:16 +01:00
|
|
|
package eu.dnetlib.dhp.schema.dump.oaf.graph;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
import com.github.imifou.jsonschema.module.addon.annotation.JsonSchema;
|
|
|
|
|
|
|
|
public
|
|
|
|
|
|
|
|
class OrganizationPid implements Serializable {
|
|
|
|
@JsonSchema(description="The scheme of the identifier (i.e. isni)")
|
|
|
|
private String scheme;
|
|
|
|
|
|
|
|
@JsonSchema(description="The value in the schema (i.e. 0000000090326370)")
|
|
|
|
private String value;
|
|
|
|
|
|
|
|
public String getScheme() {
|
|
|
|
return scheme;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setScheme(String scheme) {
|
|
|
|
this.scheme = scheme;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setValue(String value) {
|
|
|
|
this.value = value;
|
|
|
|
}
|
2021-11-18 11:55:43 +01:00
|
|
|
|
|
|
|
public static OrganizationPid newInstance(String scheme, String value) {
|
|
|
|
OrganizationPid cf = new OrganizationPid();
|
|
|
|
|
|
|
|
cf.setScheme(scheme);
|
|
|
|
cf.setValue(value);
|
|
|
|
|
|
|
|
return cf;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-11-18 11:49:16 +01:00
|
|
|
}
|