package com.qianwen.smartman.modules.dnc.enums;
|
|
public enum DncFileNameProcessRuleEnum {
|
DIRTECTORY(0, "文件目录"),
|
ARTBAG(1, "工艺包属性");
|
|
private final Integer value;
|
private final String description;
|
|
DncFileNameProcessRuleEnum(final Integer value, final String description) {
|
this.value = value;
|
this.description = description;
|
}
|
|
public Integer getValue() {
|
return this.value;
|
}
|
|
public String getDescription() {
|
return this.description;
|
}
|
|
public static DncFileNameProcessRuleEnum of(Integer value) {
|
if (value == null) {
|
return null;
|
}
|
DncFileNameProcessRuleEnum[] values = values();
|
for (DncFileNameProcessRuleEnum sourceEnum : values) {
|
if (sourceEnum.value.equals(value)) {
|
return sourceEnum;
|
}
|
}
|
return null;
|
}
|
|
public boolean isEqual(Integer value) {
|
return this.value.equals(value);
|
}
|
}
|