1 package org.apache.maven.scm.command.diff;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.List;
23 import java.util.Map;
24
25 import org.apache.maven.scm.ScmFile;
26 import org.apache.maven.scm.ScmResult;
27
28
29
30
31
32 public class DiffScmResult
33 extends ScmResult
34 {
35 private static final long serialVersionUID = 4036970486972633082L;
36
37 private List<ScmFile> changedFiles;
38
39 private Map<String,CharSequence> differences;
40
41 private String patch;
42
43 public DiffScmResult( String commandLine, List<ScmFile> changedFiles, Map<String,CharSequence> differences, String patch )
44 {
45 this( commandLine, null, null, true );
46 this.changedFiles = changedFiles;
47 this.differences = differences;
48 this.patch = patch;
49 }
50
51 public DiffScmResult( String commandLine, String providerMessage, String commandOutput, boolean success )
52 {
53 super( commandLine, providerMessage, commandOutput, success );
54 }
55
56 public DiffScmResult( List<ScmFile> changedFiles, Map<String,CharSequence> differences, String patch, ScmResult result )
57 {
58 super( result );
59
60 this.changedFiles = changedFiles;
61
62 this.differences = differences;
63
64 this.patch = patch;
65 }
66
67 public List<ScmFile> getChangedFiles()
68 {
69 return changedFiles;
70 }
71
72 public Map<String,CharSequence> getDifferences()
73 {
74 return differences;
75 }
76
77 public String getPatch()
78 {
79 return patch;
80 }
81 }