1 /*** 2 * Created on 2005-02-27 3 * @author Philippe Lefebvre 4 */ 5 package net.sf.xtract.caching; 6 7 import java.io.File; 8 9 import net.sf.xtract.DocumentCache.Entry; 10 11 import org.w3c.dom.Document; 12 13 14 /*** 15 * TODO Write javadoc for 16 */ 17 class RealEntry implements Entry { 18 19 private final File mFile; 20 private final Document mDocument; 21 private final long mTimestamp; 22 23 public RealEntry(File pFile, Document pDocument) { 24 mFile = pFile; 25 mDocument = pDocument; 26 mTimestamp = System.currentTimeMillis(); 27 } 28 29 /*** 30 * @return Returns the document. 31 */ 32 public Document getDocument() { 33 return mDocument; 34 } 35 36 /*** 37 * @return Returns the file. 38 */ 39 public File getFile() { 40 return mFile; 41 } 42 43 /*** 44 * @return Returns the timestamp. 45 */ 46 public long getTimestamp() { 47 return mTimestamp; 48 } 49 50 }