01: package tide.sources;
02:
03: import java.util.*;
04: import java.io.*;
05:
06: /** contain the result of an analysis of chanegs (new addes, removed, changed source files)
07: */
08: public final class ChangesAnalysisResult {
09: final public List<SourceFile> removedFiles = new ArrayList<SourceFile>(); // files and dirs.
10: final public List<SourceFile> changedFiles = new ArrayList<SourceFile>(); // new contents and/or flags
11: final public List<File> addedFiles = new ArrayList<File>(); // added files
12:
13: public ChangesAnalysisResult() {
14: }
15:
16: @Override
17: public String toString() {
18: return "ChangesAnalysisResult: " + "\nRemoved: "
19: + this .removedFiles + "\nChanged: " + this .changedFiles
20: + "\nAdded: " + this .addedFiles;
21: }
22:
23: public boolean hasChanges() {
24: if (addedFiles.size() > 0)
25: return true;
26: if (changedFiles.size() > 0)
27: return true;
28: if (removedFiles.size() > 0)
29: return true;
30:
31: return false;
32: }
33:
34: }
|