36 lines
892 B
Java
36 lines
892 B
Java
package org.opencdmp.commonmodels.enums;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonValue;
|
|
|
|
import java.util.Map;
|
|
|
|
public enum DmpBlueprintFieldCategory implements EnumValueProvider<Short> {
|
|
System((short) 0),
|
|
Extra((short) 1),
|
|
ReferenceType((short) 2);
|
|
|
|
public static class Names {
|
|
public static final String System = "system";
|
|
public static final String Extra = "extra";
|
|
public static final String ReferenceType = "referenceType";
|
|
}
|
|
|
|
private final Short value;
|
|
|
|
DmpBlueprintFieldCategory(Short value) {
|
|
this.value = value;
|
|
}
|
|
|
|
@JsonValue
|
|
public Short getValue() {
|
|
return value;
|
|
}
|
|
|
|
private static final Map<Short, DmpBlueprintFieldCategory> map = EnumUtils.getEnumValueMap(DmpBlueprintFieldCategory.class);
|
|
|
|
public static DmpBlueprintFieldCategory of(Short i) {
|
|
return map.get(i);
|
|
}
|
|
}
|
|
|