40 lines
905 B
Java
40 lines
905 B
Java
package eu.eudat.commons.enums;
|
|
|
|
import eu.eudat.data.converters.enums.DatabaseEnum;
|
|
|
|
import java.util.Map;
|
|
|
|
public enum ExternalReferencesType implements DatabaseEnum<Short> {
|
|
Taxonomies((short) 0),
|
|
Licenses((short) 1),
|
|
Publications((short) 2),
|
|
Journals((short) 3),
|
|
PubRepositories((short) 4),
|
|
DataRepositories((short) 5),
|
|
Registries((short) 6),
|
|
Services((short) 7),
|
|
Project((short) 8),
|
|
Funder((short) 9),
|
|
Datasets((short) 10),
|
|
Organizations((short) 11),
|
|
Grants((short) 12),
|
|
Validators((short) 13),
|
|
Researcher((short) 14),
|
|
Prefillings((short) 15);
|
|
private final Short value;
|
|
|
|
ExternalReferencesType(Short value) {
|
|
this.value = value;
|
|
}
|
|
|
|
public Short getValue() {
|
|
return value;
|
|
}
|
|
|
|
private static final Map<Short, ExternalReferencesType> map = EnumUtils.getEnumValueMap(ExternalReferencesType.class);
|
|
|
|
public static ExternalReferencesType of(Short i) {
|
|
return map.get(i);
|
|
}
|
|
}
|