1
0

TjyydhxAttachmentNameEnum.java 1.5 KB

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