1
0

TjyydhxAttachmentNameEnum.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package com.siwei.apply.enums;
  2. /**
  3. * 规划条件与用地红线出具
  4. */
  5. public enum TjyydhxAttachmentNameEnum {
  6. NAME_1("1", "建设用地涉及的详细规划批复及图则", "", "用地报批阶段资料"),
  7. NAME_2("2", "用地红线", "", "用地报批阶段资料"),
  8. NAME_3("3", "规划红线图", "", "用地报批阶段资料"),
  9. NAME_4("4", "规划条件出具", "", "用地报批阶段资料"),
  10. NAME_5("5", "有关部门意见", "", "用地报批阶段资料");
  11. private final String code;
  12. private final String name;
  13. private final String relationName;
  14. private final String parentName;
  15. TjyydhxAttachmentNameEnum(String code, String name, String relationName, String parentName) {
  16. this.code = code;
  17. this.name = name;
  18. this.relationName = relationName;
  19. this.parentName = parentName;
  20. }
  21. public String getName() {
  22. return this.name;
  23. }
  24. public String getCode() {
  25. return this.code;
  26. }
  27. public String getRelationName() {
  28. return this.relationName;
  29. }
  30. public String getParentName() {
  31. return this.parentName;
  32. }
  33. public static TjyydhxAttachmentNameEnum fromCode(String code) {
  34. if (code == null) return null;
  35. for (TjyydhxAttachmentNameEnum e : values()) {
  36. if (code.equals(e.code)) return e;
  37. }
  38. return null;
  39. }
  40. }