package com.siwei.apply.enums; /** * 规划条件与用地红线出具 */ public enum TjyydhxAttachmentNameEnum { NAME_1("1", "建设用地涉及的详细规划批复及图则", "", "用地报批阶段资料"), NAME_2("2", "用地红线", "", "用地报批阶段资料"), NAME_3("3", "规划红线图", "", "用地报批阶段资料"), NAME_4("4", "规划条件出具", "", "用地报批阶段资料"), NAME_5("5", "有关部门意见", "", "用地报批阶段资料"); private final String code; private final String name; private final String relationName; private final String parentName; TjyydhxAttachmentNameEnum(String code, String name, String relationName, String parentName) { this.code = code; this.name = name; this.relationName = relationName; this.parentName = parentName; } public String getName() { return this.name; } public String getCode() { return this.code; } public String getRelationName() { return this.relationName; } public String getParentName() { return this.parentName; } public static TjyydhxAttachmentNameEnum fromCode(String code) { if (code == null) return null; for (TjyydhxAttachmentNameEnum e : values()) { if (code.equals(e.code)) return e; } return null; } }