KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jzonic > jlo > FileWatcherInfo


1 package org.jzonic.jlo;
2
3 /**
4  * This class is a helper for the FileWatcher. It keeps some
5  * informations about every file that is overserved.
6  *
7  * @author Andreas Mecky
8  * @author Terry Dye
9  */

10 public class FileWatcherInfo {
11
12     private String JavaDoc fileName;
13     private long lastModified;
14     private String JavaDoc configurationName;
15     
16     public FileWatcherInfo(String JavaDoc fileName,long lastModified,String JavaDoc configurationName) {
17         this.fileName = fileName;
18         this.lastModified = lastModified;
19         this.configurationName = configurationName;
20     }
21     
22     
23     /**
24      * Returns the configurationName.
25      * @return String
26      */

27     public String JavaDoc getConfigurationName() {
28         return configurationName;
29     }
30
31     /**
32      * Returns the fileName.
33      * @return String
34      */

35     public String JavaDoc getFileName() {
36         return fileName;
37     }
38
39     /**
40      * Returns the lastModified.
41      * @return long
42      */

43     public long getLastModified() {
44         return lastModified;
45     }
46
47     /**
48      * Sets the configurationName.
49      * @param configurationName The configurationName to set
50      */

51     public void setConfigurationName(String JavaDoc configurationName) {
52         this.configurationName = configurationName;
53     }
54
55     /**
56      * Sets the fileName.
57      * @param fileName The fileName to set
58      */

59     public void setFileName(String JavaDoc fileName) {
60         this.fileName = fileName;
61     }
62
63     /**
64      * Sets the lastModified.
65      * @param lastModified The lastModified to set
66      */

67     public void setLastModified(long lastModified) {
68         this.lastModified = lastModified;
69     }
70
71 }
72
Popular Tags