Clover coverage report - Code Coverage for hivemind-examples release 1.0-rc-2
Coverage timestamp: Sat Sep 11 2004 09:10:24 EDT
file stats: LOC: 90   Methods: 10
NCLOC: 51   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
Task.java - 90% 90% 90%
coverage coverage
 1   
 //  Copyright 2004 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package com.panorama.startup.impl;
 16   
 
 17   
 import org.apache.hivemind.impl.BaseLocatable;
 18   
 
 19   
 import com.panorama.startup.Executable;
 20   
 
 21   
 /**
 22   
  * An operation that may be executed. A Task exists to wrap
 23   
  * an {@link com.panorama.startup.Executable} object with
 24   
  * a title and ordering information (id, after, before).
 25   
  *
 26   
  * @author Howard Lewis Ship
 27   
  */
 28   
 public class Task extends BaseLocatable implements Executable
 29   
 {
 30   
     private String _id;
 31   
     private String _title;
 32   
     private String _after;
 33   
     private String _before;
 34   
     private Executable _executable;
 35   
 
 36  3
     public String getBefore()
 37   
     {
 38  3
         return _before;
 39   
     }
 40   
 
 41  3
     public String getId()
 42   
     {
 43  3
         return _id;
 44   
     }
 45   
 
 46  3
     public String getAfter()
 47   
     {
 48  3
         return _after;
 49   
     }
 50   
 
 51  4
     public String getTitle()
 52   
     {
 53  4
         return _title;
 54   
     }
 55   
 
 56  3
     public void setExecutable(Executable executable)
 57   
     {
 58  3
         _executable = executable;
 59   
     }
 60   
 
 61  0
     public void setBefore(String string)
 62   
     {
 63  0
         _before = string;
 64   
     }
 65   
 
 66  3
     public void setId(String string)
 67   
     {
 68  3
         _id = string;
 69   
     }
 70   
 
 71  1
     public void setAfter(String string)
 72   
     {
 73  1
         _after = string;
 74   
     }
 75   
 
 76  3
     public void setTitle(String string)
 77   
     {
 78  3
         _title = string;
 79   
     }
 80   
 
 81   
     /**
 82   
      * Delegates to the {@link #setExecutable(Executable) executable} object.
 83   
      */
 84  3
     public void execute() throws Exception
 85   
     {
 86  3
         _executable.execute();
 87   
     }
 88   
 
 89   
 }
 90