2020-10-07 13:14:31 +02:00
|
|
|
|
2020-10-06 18:55:23 +02:00
|
|
|
package eu.dnetlib.dhp.schema.oaf.utils;
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.EnumUtils;
|
|
|
|
|
|
|
|
public enum PidType {
|
|
|
|
|
2020-10-07 13:14:31 +02:00
|
|
|
// Result
|
|
|
|
doi, pmid, pmc, handle, arXiv, NCID, GBIF, nct, pdb,
|
2020-10-06 18:55:23 +02:00
|
|
|
|
2020-10-07 13:14:31 +02:00
|
|
|
// Organization
|
2020-10-06 18:55:23 +02:00
|
|
|
GRID, mag_id, urn;
|
|
|
|
|
2020-10-07 13:14:31 +02:00
|
|
|
public static boolean isValid(String type) {
|
|
|
|
return EnumUtils.isValidEnum(PidType.class, type);
|
|
|
|
}
|
|
|
|
|
2020-10-06 18:55:23 +02:00
|
|
|
}
|