package com.qianwen.core.coderule.constant.enums; /* loaded from: blade-starter-coderule-9.3.0.0-SNAPSHOT.jar:org/springblade/core/coderule/constant/enums/ElementTypeEnum.class */ public enum ElementTypeEnum { SEQUENCE(0, "流水号"), CONSTANT(1, "常量"), DATE(2, "日期字段"), NUMBER(3, "数值字段"), DROPDOWN(4, "下拉列表"), BASE_DATA(5, "基础资料"), BASE_DATA_PROPERTY(6, "基础资料属性"), TEXT(7, "文本"); private final Integer type; private final String description; ElementTypeEnum(final Integer type, final String description) { this.type = type; this.description = description; } public Integer getType() { return this.type; } public String getDescription() { return this.description; } public static ElementTypeEnum of(Integer elementType) { if (elementType == null) { return null; } ElementTypeEnum[] values = values(); for (ElementTypeEnum elementEnum : values) { if (elementEnum.type.equals(elementType)) { return elementEnum; } } return null; } }