extensions/net.sf.basedb.genepattern/trunk/src/net/sf/basedb/genepattern/wrapper/SupportFileInfo.java

Code
Comments
Other
Rev Date Author Line
1132 18 Jun 09 nicklas 1 package net.sf.basedb.genepattern.wrapper;
1132 18 Jun 09 nicklas 2
1132 18 Jun 09 nicklas 3 /**
1132 18 Jun 09 nicklas 4   Wraps information about support files to visualization 
1132 18 Jun 09 nicklas 5   modules. Support files are usually JAR file that are
1132 18 Jun 09 nicklas 6   downloaded to the client computer by the visualizer applet.
1132 18 Jun 09 nicklas 7   Each visualizer module have their own swet of support files.
1132 18 Jun 09 nicklas 8   
1132 18 Jun 09 nicklas 9   @author nicklas
1132 18 Jun 09 nicklas 10   @since 1.0
1132 18 Jun 09 nicklas 11 */
1132 18 Jun 09 nicklas 12 public class SupportFileInfo 
1132 18 Jun 09 nicklas 13 {
1132 18 Jun 09 nicklas 14
1132 18 Jun 09 nicklas 15   private String fileName;
1132 18 Jun 09 nicklas 16   private long lastModified;
1132 18 Jun 09 nicklas 17   
1132 18 Jun 09 nicklas 18   /**
1132 18 Jun 09 nicklas 19     Creates a new support file information instance.
1132 18 Jun 09 nicklas 20     @param fileName The name of the file
1132 18 Jun 09 nicklas 21     @param lastModified The time the file was last modified
1132 18 Jun 09 nicklas 22   */
1132 18 Jun 09 nicklas 23   public SupportFileInfo(String fileName, long lastModified)
1132 18 Jun 09 nicklas 24   {
1132 18 Jun 09 nicklas 25     this.fileName = fileName;
1132 18 Jun 09 nicklas 26     this.lastModified = lastModified;
1132 18 Jun 09 nicklas 27   }
1132 18 Jun 09 nicklas 28   
1132 18 Jun 09 nicklas 29   /**
1132 18 Jun 09 nicklas 30     Get the filename
1132 18 Jun 09 nicklas 31   */
1132 18 Jun 09 nicklas 32   public String getFileName()
1132 18 Jun 09 nicklas 33   {
1132 18 Jun 09 nicklas 34     return fileName;
1132 18 Jun 09 nicklas 35   }
1132 18 Jun 09 nicklas 36   
1132 18 Jun 09 nicklas 37   /**
1132 18 Jun 09 nicklas 38     Get the last modified time.
1132 18 Jun 09 nicklas 39   */
1132 18 Jun 09 nicklas 40   public long getLastModified()
1132 18 Jun 09 nicklas 41   {
1132 18 Jun 09 nicklas 42     return lastModified;
1132 18 Jun 09 nicklas 43   }
1132 18 Jun 09 nicklas 44 }