001/**
002 * Copyright 2010-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.common.util.file;
017
018import java.io.File;
019import java.util.List;
020
021public class DirDiff {
022
023        // The directories that were diff'd
024        File sourceDir;
025        File targetDir;
026
027        // Relative paths characterizing what files were found where
028        List<String> both;
029        List<MD5Result> different;
030        List<MD5Result> identical;
031        List<String> sourceDirOnly;
032        List<String> targetDirOnly;
033
034        public DirDiff() {
035                this(null, null);
036        }
037
038        public DirDiff(File sourceDir, File targetDir) {
039                super();
040                this.sourceDir = sourceDir;
041                this.targetDir = targetDir;
042        }
043
044        public File getSourceDir() {
045                return sourceDir;
046        }
047
048        public void setSourceDir(File sourceDir) {
049                this.sourceDir = sourceDir;
050        }
051
052        public File getTargetDir() {
053                return targetDir;
054        }
055
056        public void setTargetDir(File targetDir) {
057                this.targetDir = targetDir;
058        }
059
060        public List<String> getBoth() {
061                return both;
062        }
063
064        public void setBoth(List<String> both) {
065                this.both = both;
066        }
067
068        public List<MD5Result> getDifferent() {
069                return different;
070        }
071
072        public void setDifferent(List<MD5Result> different) {
073                this.different = different;
074        }
075
076        public List<String> getSourceDirOnly() {
077                return sourceDirOnly;
078        }
079
080        public void setSourceDirOnly(List<String> sourceDirOnly) {
081                this.sourceDirOnly = sourceDirOnly;
082        }
083
084        public List<String> getTargetDirOnly() {
085                return targetDirOnly;
086        }
087
088        public void setTargetDirOnly(List<String> targetDirOnly) {
089                this.targetDirOnly = targetDirOnly;
090        }
091
092        public List<MD5Result> getIdentical() {
093                return identical;
094        }
095
096        public void setIdentical(List<MD5Result> identical) {
097                this.identical = identical;
098        }
099
100}