1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.scm.command.remoteinfo;
20
21 import java.util.HashMap;
22 import java.util.Map;
23
24 import org.apache.maven.scm.ScmResult;
25
26
27
28
29
30 public class RemoteInfoScmResult extends ScmResult {
31 private static final long serialVersionUID = -5571403202068311222L;
32
33
34
35
36
37 private Map<String, String> branches = new HashMap<>();
38
39
40
41
42
43 private Map<String, String> tags = new HashMap<>();
44
45 public RemoteInfoScmResult(String commandLine, String providerMessage, String commandOutput, boolean success) {
46 super(commandLine, providerMessage, commandOutput, success);
47 }
48
49 public RemoteInfoScmResult(String commandLine, Map<String, String> branches, Map<String, String> tags) {
50 super(commandLine, null, null, true);
51 this.branches = branches;
52 this.tags = tags;
53 }
54
55 public Map<String, String> getBranches() {
56 return branches;
57 }
58
59 public void setBranches(Map<String, String> branches) {
60 this.branches = branches;
61 }
62
63 public Map<String, String> getTags() {
64 return tags;
65 }
66
67 public void setTags(Map<String, String> tags) {
68 this.tags = tags;
69 }
70
71 @Override
72 public String toString() {
73 final StringBuilder sb = new StringBuilder();
74 sb.append("RemoteInfoScmResult");
75 sb.append("{branches=").append(branches);
76 sb.append(", tags=").append(tags);
77 sb.append('}');
78 return sb.toString();
79 }
80 }