Clover coverage report - Alipes Project - 0.1
Coverage timestamp: Sat Sep 10 2005 21:25:58 BST
file stats: LOC: 94   Methods: 2
NCLOC: 25   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
FileEvent.java - 100% 100% 100%
coverage
 1    /*
 2    * $Id: FileEvent.java,v 1.1 2004/03/17 21:18:02 johndavidtaylor Exp $ Created
 3    * on Feb 19, 2004 by John Taylor jdt@roe.ac.uk .
 4    */
 5    package org.abraracourcix.alipes.monitors.file;
 6    import org.abraracourcix.alipes.common.Event;
 7    /**
 8    *
 9    * An event representing all the things that could change about a file's state
 10    * Java enumeration
 11    * @author jdt
 12    */
 13    public final class FileEvent implements Event {
 14    /**
 15    * Enum value
 16    */
 17    public static final FileEvent UNKNOWN = new FileEvent("Unknown");
 18    /**
 19    * Enum value
 20    */
 21    public static final FileEvent EXISTS = new FileEvent("File exists");
 22    /**
 23    * Enum value
 24    */
 25    public static final FileEvent DOES_NOT_EXIST =
 26    new FileEvent("File does not exist");
 27    /**
 28    * Enum value
 29    */
 30    public static final FileEvent DELETED =
 31    new FileEvent("File has been deleted");
 32    /**
 33    * Enum value
 34    */
 35    public static final FileEvent CREATED =
 36    new FileEvent("File has been created");
 37    /**
 38    * Enum value
 39    */
 40    public static final FileEvent UPDATED =
 41    new FileEvent("File has been updated");
 42    /**
 43    * Enum value
 44    */
 45    public static final FileEvent IS_STALE =
 46    new FileEvent("File is out of date");
 47    /**
 48    * Enum value
 49    */
 50    public static final FileEvent GONE_STALE =
 51    new FileEvent("File has gone out of date");
 52    /**
 53    * Text describing the event
 54    */
 55    private String description;
 56    /**
 57    * The usual toString method, returning a description of the event
 58    *
 59    * @return the event
 60    */
 61  3 public String toString() {
 62  3 return description;
 63    }
 64    /**
 65    * Constructor
 66    *
 67    * @param description
 68    * of event
 69    */
 70  8 private FileEvent(final String description) {
 71  8 this.description = description;
 72    }
 73    }
 74    /*
 75    * $Log: FileEvent.java,v $
 76    * Revision 1.1 2004/03/17 21:18:02 johndavidtaylor
 77    * Copied across from incubation in beanpeeler
 78    *
 79    * Revision 1.4 2004/03/14 18:49:13 johndavidtaylor
 80    * corrected comments
 81    *
 82    * Revision 1.3 2004/03/11 15:46:33 johndavidtaylor
 83    * Applied coding standards
 84    * Revision 1.2 2004/03/08 20:16:44 johndavidtaylor
 85    * refactored to new package name
 86    *
 87    * Revision 1.1 2004/03/08 19:58:24 johndavidtaylor Initial commit -transfer
 88    * from previous repository
 89    *
 90    * Revision 1.2 2004/03/04 17:50:55 jdt *** empty log message ***
 91    *
 92    * Revision 1.1 2004/03/02 23:04:37 jdt new
 93    *
 94    */