Coverage Report - com.buckosoft.PicMan.domain.SyncLogEntry
 
Classes in this File Line Coverage Branch Coverage Complexity
SyncLogEntry
0%
0/17
0%
0/7
3.4
 
 1  
 /******************************************************************************
 2  
  * SyncLogEntry.java - Describe an Sync event.
 3  
  * 
 4  
  * PicMan - The BuckoSoft Picture Manager in Java
 5  
  * Copyright(c) 2008 - Dick Balaska
 6  
  * 
 7  
  */
 8  
 package com.buckosoft.PicMan.domain;
 9  
 
 10  
 /** Describe an Sync event.
 11  
  * @author Dick Balaska
 12  
  * @since 2008/11/14
 13  
  * @see <a href="http://cvs.buckosoft.com/Projects/java/PicMan/PicMan/src/com/buckosoft/PicMan/domain/SyncLogEntry.java">SyncLogEntry.java</a>
 14  
  */
 15  
 public class SyncLogEntry extends JobLogEntry {
 16  
 
 17  
         public static final int FAILED                = JLELAST+1;
 18  
         public static final int FETCHPIC        = JLELAST+2;
 19  
         public static final int FETCHFILTER        = JLELAST+3;
 20  
         public static final int PUTPIC                = JLELAST+4;
 21  
         public static final int PUTFILTER        = JLELAST+5;
 22  
         public static final int CREATEDIR        = JLELAST+6;
 23  
 
 24  0
         public SyncLogEntry() {}
 25  
         
 26  0
         public SyncLogEntry(int type, String name) {
 27  0
                 this.setType(type);
 28  0
                 this.setName(name);
 29  0
         }
 30  
 
 31  0
         private        String        message = null;
 32  
 
 33  
         /**
 34  
          * @return the type as a string
 35  
          */
 36  
         @Override
 37  
         public        String getTypeAsString() {
 38  0
                 switch (getType()) {
 39  
                 case FAILED:
 40  0
                         return("Failed");
 41  
                 case FETCHPIC:
 42  0
                         return("FetchPic");
 43  
                 case FETCHFILTER:
 44  0
                         return("FetchFilter");
 45  
                 case PUTPIC:
 46  0
                         return("PutPic");
 47  
                 case PUTFILTER:
 48  0
                         return("PutFilter");
 49  
                 case CREATEDIR:
 50  0
                         return("CreateDir");
 51  
                 }
 52  0
                 return(super.getTypeAsString());
 53  
         }
 54  
 
 55  
         /**
 56  
          * @return the message
 57  
          */
 58  
         public String getMessage() {
 59  0
                 return message;
 60  
         }
 61  
 
 62  
         /**
 63  
          * @param message the message to set
 64  
          */
 65  
         public void setMessage(String message) {
 66  0
                 this.message = message;
 67  0
         }
 68  
 
 69  
         
 70  
 }