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 /**
13 * The result of a submodule deinit command for a particular path
14 *
15 * @since 4.10
16 */
17 public class SubmoduleDeinitResult {
18 private String path;
19
20 private SubmoduleDeinitCommand.SubmoduleDeinitStatus status;
21
22 /**
23 * Constructor for SubmoduleDeinitResult
24 *
25 * @param path
26 * path of the submodule
27 * @param status
28 */
29 public SubmoduleDeinitResult(String path,
30 SubmoduleDeinitCommand.SubmoduleDeinitStatus status) {
31 this.path = path;
32 this.status = status;
33 }
34
35 /**
36 * Get the path of the submodule
37 *
38 * @return path of the submodule
39 */
40 public String getPath() {
41 return path;
42 }
43
44 /**
45 * Set the path of the submodule
46 *
47 * @param path
48 * path of the submodule
49 */
50 public void setPath(String path) {
51 this.path = path;
52 }
53
54 /**
55 * Get the status of the command
56 *
57 * @return the status of the command
58 */
59 public SubmoduleDeinitCommand.SubmoduleDeinitStatus getStatus() {
60 return status;
61 }
62
63 /**
64 * Set the status of the command
65 *
66 * @param status
67 * the status of the command
68 */
69 public void setStatus(SubmoduleDeinitCommand.SubmoduleDeinitStatus status) {
70 this.status = status;
71 }
72 }