ParserEnum.java 824 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package org.dbsyncer.parser.enums;
  2. /**
  3. * 解析器参数枚举
  4. *
  5. * @author AE86
  6. * @version 1.0.0
  7. * @date 2020/04/29 10:19
  8. */
  9. public enum ParserEnum {
  10. /**
  11. * 页数
  12. */
  13. PAGE_INDEX("pageIndex", "1");
  14. /**
  15. * 编码
  16. */
  17. private String code;
  18. /**
  19. * 默认值
  20. */
  21. private String defaultValue;
  22. ParserEnum(String code, String defaultValue) {
  23. this.code = code;
  24. this.defaultValue = defaultValue;
  25. }
  26. public String getCode() {
  27. return code;
  28. }
  29. public void setCode(String code) {
  30. this.code = code;
  31. }
  32. public String getDefaultValue() {
  33. return defaultValue;
  34. }
  35. public void setDefaultValue(String defaultValue) {
  36. this.defaultValue = defaultValue;
  37. }
  38. }