org.apache.torque.util
Class ChangeDetector

java.lang.Object
  extended by org.apache.torque.util.ChangeDetector

public class ChangeDetector
extends Object


Constructor Summary
ChangeDetector()
           
ChangeDetector(File controlFile, List<File> files)
           
 
Method Summary
 File getControlFile()
           
 List<File> getFiles()
           
 boolean isChanged()
          Return true if any file in the list of files has a last modified timestamp newer than the control file or if the control file does not exist
 void setControlFile(File controlFile)
           
 void setFiles(List<File> files)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeDetector

public ChangeDetector()

ChangeDetector

public ChangeDetector(File controlFile,
                      List<File> files)
Method Detail

isChanged

public boolean isChanged()
Return true if any file in the list of files has a last modified timestamp newer than the control file or if the control file does not exist


getControlFile

public File getControlFile()

setControlFile

public void setControlFile(File controlFile)

getFiles

public List<File> getFiles()

setFiles

public void setFiles(List<File> files)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.