GyjsydscdjAttachmentNameEnum.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.siwei.apply.enums;
  2. /**
  3. * 国有建设用地使用权首次登记阶段
  4. */
  5. public enum GyjsydscdjAttachmentNameEnum {
  6. NAME_1("1", "申请表及询问笔录", "", "国有建设用地使用权首次登记阶段资料"),
  7. NAME_2("2", "主体资格文件", "", "国有建设用地使用权首次登记阶段资料"),
  8. NAME_3("3", "测绘成果", "", "国有建设用地使用权首次登记阶段资料"),
  9. NAME_4("4", "土地权属来源证明", "", "国有建设用地使用权首次登记阶段资料"),
  10. NAME_5("5", "完税凭证", "", "国有建设用地使用权首次登记阶段资料"),
  11. NAME_6("6", "登记结果", "", "国有建设用地使用权首次登记阶段资料");
  12. private final String code;
  13. private final String name;
  14. private final String relationName;
  15. private final String parentName;
  16. GyjsydscdjAttachmentNameEnum(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 GyjsydscdjAttachmentNameEnum fromCode(String code) {
  35. if (code == null) return null;
  36. for (GyjsydscdjAttachmentNameEnum e : values()) {
  37. if (code.equals(e.code)) return e;
  38. }
  39. return null;
  40. }
  41. }