argos/dmp-backend/core/src/main/java/eu/eudat/commons/enums/ExternalReferencesType.java

38 lines
854 B
Java
Raw Normal View History

2023-10-19 16:56:53 +02:00
package eu.eudat.commons.enums;
2023-10-20 18:13:57 +02:00
import eu.eudat.data.converters.enums.DatabaseEnum;
2023-10-19 16:56:53 +02:00
import java.util.Map;
2023-10-20 18:13:57 +02:00
public enum ExternalReferencesType implements DatabaseEnum<Short> {
2023-10-19 16:56:53 +02:00
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),
2023-10-20 18:13:57 +02:00
Funder((short) 9),
Datasets((short) 10),
Organizations((short) 11),
Grants((short) 12),
Researcher((short) 13);
2023-10-19 16:56:53 +02:00
private final Short value;
ExternalReferencesType(Short value) {
this.value = value;
}
public Short getValue() {
return value;
}
2023-10-20 18:13:57 +02:00
private static final Map<Short, ExternalReferencesType> map = EnumUtils.getEnumValueMap(ExternalReferencesType.class);
2023-10-19 16:56:53 +02:00
2023-10-20 18:13:57 +02:00
public static ExternalReferencesType of(Short i) {
2023-10-19 16:56:53 +02:00
return map.get(i);
}
}