Clover coverage report -
Coverage timestamp: Sat Jul 7 2007 16:41:13 CEST
file stats: LOC: 120   Methods: 8
NCLOC: 49   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
RunnerConfigParam.java 50% 72.2% 75% 68.8%
coverage coverage
 1    /**
 2    * JTRunner is free software; you can redistribute it and/or modify it under the
 3    * terms of the GNU General Public License as published by the Free Software
 4    * Foundation; either version 2, or (at your option) any later version.
 5    */
 6   
 7    package jtr.config;
 8   
 9    import java.io.Serializable;
 10    import org.apache.log4j.Logger;
 11   
 12    /**
 13    * A single <code>RunnerConfigParam</code> defines one single parameter
 14    * name-value pair, to be used by the adopted <code>IParamsAssigner</code> for
 15    * correctly assigning parameters to the configured <code>IRunner</code>.
 16    *
 17    * @author Francesco Russo (frusso@dev.java.net)
 18    * @version 4.0
 19    * @since 1.0
 20    */
 21    public class RunnerConfigParam implements Serializable {
 22    /**
 23    * Costructor.
 24    */
 25  33 public RunnerConfigParam() {
 26    }
 27   
 28    /**
 29    * Returns the name of the parameter.
 30    *
 31    * @return String
 32    */
 33  52423 public String getName() {
 34  52423 return name;
 35    }
 36   
 37    /**
 38    * Sets the name of the parameter.
 39    *
 40    * @param name
 41    * String
 42    */
 43  99 public void setName(String name) {
 44  99 this.name = name;
 45    }
 46   
 47    /**
 48    * Gets the actual value of the parameter.
 49    *
 50    * @return String
 51    */
 52  42287 public String getValue() {
 53  42284 return value;
 54    }
 55   
 56    /**
 57    * Sets the actual value of the parameter.
 58    *
 59    * @param value
 60    * String
 61    */
 62  99 public void setValue(String value) {
 63  99 this.value = value;
 64    }
 65   
 66    /**
 67    * Gets the type of the parameter. <br>
 68    * <br>
 69    * <b>Note:</b> this feature in unused at the moment
 70    *
 71    * @return String
 72    */
 73  0 public String getType() {
 74  0 return type;
 75    }
 76   
 77    /**
 78    * Sets the type of the parameter. <br>
 79    * <br>
 80    * <b>Note:</b> this feature in unused at the moment
 81    *
 82    * @param type
 83    * String
 84    */
 85  0 public void setType(String type) {
 86  0 this.type = type;
 87    }
 88   
 89    /**
 90    * @see java.lang.Object#toString()
 91    */
 92  387502 public String toString() {
 93  387499 String res = "Param [";
 94  387526 if (name != null) {
 95  387533 res = res + "Name = " + name + ", ";
 96    } else {
 97  0 res = res + "Name = null, ";
 98    }
 99  387501 if (value != null) {
 100  387531 res = res + "Value = " + value + ", ";
 101    } else {
 102  0 res = res + "Value = null, ";
 103    }
 104  387496 if (type != null) {
 105  0 res = res + "Type = " + type + "]";
 106    } else {
 107  387506 res = res + "Type = null]";
 108    }
 109  387474 logger.debug(res);
 110  387536 return res;
 111    }
 112   
 113    private String name;
 114   
 115    private String value;
 116   
 117    private String type;
 118   
 119    private static Logger logger = Logger.getLogger(RunnerConfigParam.class);
 120    }