View Javadoc

1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.util.file;
17  
18  import java.io.File;
19  import java.util.List;
20  
21  public class DirDiff {
22  
23  	// The directories that were diff'd
24  	File sourceDir;
25  	File targetDir;
26  
27  	// Relative paths characterizing what files were found where
28  	List<String> both;
29  	List<MD5Result> different;
30  	List<MD5Result> identical;
31  	List<String> sourceDirOnly;
32  	List<String> targetDirOnly;
33  
34  	public DirDiff() {
35  		this(null, null);
36  	}
37  
38  	public DirDiff(File sourceDir, File targetDir) {
39  		super();
40  		this.sourceDir = sourceDir;
41  		this.targetDir = targetDir;
42  	}
43  
44  	public File getSourceDir() {
45  		return sourceDir;
46  	}
47  
48  	public void setSourceDir(File sourceDir) {
49  		this.sourceDir = sourceDir;
50  	}
51  
52  	public File getTargetDir() {
53  		return targetDir;
54  	}
55  
56  	public void setTargetDir(File targetDir) {
57  		this.targetDir = targetDir;
58  	}
59  
60  	public List<String> getBoth() {
61  		return both;
62  	}
63  
64  	public void setBoth(List<String> both) {
65  		this.both = both;
66  	}
67  
68  	public List<MD5Result> getDifferent() {
69  		return different;
70  	}
71  
72  	public void setDifferent(List<MD5Result> different) {
73  		this.different = different;
74  	}
75  
76  	public List<String> getSourceDirOnly() {
77  		return sourceDirOnly;
78  	}
79  
80  	public void setSourceDirOnly(List<String> sourceDirOnly) {
81  		this.sourceDirOnly = sourceDirOnly;
82  	}
83  
84  	public List<String> getTargetDirOnly() {
85  		return targetDirOnly;
86  	}
87  
88  	public void setTargetDirOnly(List<String> targetDirOnly) {
89  		this.targetDirOnly = targetDirOnly;
90  	}
91  
92  	public List<MD5Result> getIdentical() {
93  		return identical;
94  	}
95  
96  	public void setIdentical(List<MD5Result> identical) {
97  		this.identical = identical;
98  	}
99  
100 }