Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

SubmoduleDeinitResult.java 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (C) 2017, Two Sigma Open Source and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. package org.eclipse.jgit.api;
  11. /**
  12. * The result of a submodule deinit command for a particular path
  13. *
  14. * @since 4.10
  15. */
  16. public class SubmoduleDeinitResult {
  17. private String path;
  18. private SubmoduleDeinitCommand.SubmoduleDeinitStatus status;
  19. /**
  20. * Constructor for SubmoduleDeinitResult
  21. *
  22. * @param path
  23. * path of the submodule
  24. * @param status
  25. */
  26. public SubmoduleDeinitResult(String path,
  27. SubmoduleDeinitCommand.SubmoduleDeinitStatus status) {
  28. this.path = path;
  29. this.status = status;
  30. }
  31. /**
  32. * Get the path of the submodule
  33. *
  34. * @return path of the submodule
  35. */
  36. public String getPath() {
  37. return path;
  38. }
  39. /**
  40. * Set the path of the submodule
  41. *
  42. * @param path
  43. * path of the submodule
  44. */
  45. public void setPath(String path) {
  46. this.path = path;
  47. }
  48. /**
  49. * Get the status of the command
  50. *
  51. * @return the status of the command
  52. */
  53. public SubmoduleDeinitCommand.SubmoduleDeinitStatus getStatus() {
  54. return status;
  55. }
  56. /**
  57. * Set the status of the command
  58. *
  59. * @param status
  60. * the status of the command
  61. */
  62. public void setStatus(SubmoduleDeinitCommand.SubmoduleDeinitStatus status) {
  63. this.status = status;
  64. }
  65. }