Coverage report

  %line %branch
net.sf.tlc.model.Target
100% 
100% 

 1  
 /*
 2  
  * Created on May 19, 2005
 3  
  * 
 4  
  * Immutable POJO to contain 'target' information
 5  
  */
 6  
 package net.sf.tlc.model;
 7  
 
 8  
 /**
 9  
  * Immutable POJO to contain 'target' information
 10  
  * 
 11  
  * @author aisrael
 12  
  */
 13  
 public final class Target {
 14  
 
 15  
     /**
 16  
      * <code>TARGET_IS_CLASS</code> denotes this target is a .class under a
 17  
      * given directory.
 18  
      */
 19  
     public static final int TARGET_IS_CLASS = 1;
 20  
 
 21  
     /**
 22  
      * <code>TARGET_IS_JAR</code> denotes this target is a Class inside a Jar
 23  
      * file.
 24  
      */
 25  
     public static final int TARGET_IS_JAR = 2;
 26  
 
 27  
     private final int targetType;
 28  
 
 29  
     private final String path;
 30  
 
 31  
     private final String name;
 32  
 
 33  
     /**
 34  
      * @param targetType
 35  
      *            int
 36  
      * @param name
 37  
      *            String
 38  
      * @param path
 39  
      *            String
 40  
      */
 41  66
     public Target(final int targetType, class="keyword">final String path, class="keyword">final String name) {
 42  66
         this.targetType = targetType;
 43  66
         this.name = name;
 44  66
         this.path = path;
 45  66
     }
 46  
 
 47  
     /**
 48  
      * @return Returns the targetType.
 49  
      */
 50  
     public int getTargetType() {
 51  6
         return targetType;
 52  
     }
 53  
 
 54  
     /**
 55  
      * @return Returns the path.
 56  
      */
 57  
     public String getPath() {
 58  6
         return path;
 59  
     }
 60  
 
 61  
     /**
 62  
      * @return Returns the name.
 63  
      */
 64  
     public String getName() {
 65  30
         return name;
 66  
     }
 67  
 
 68  
     /**
 69  
      * (non-Javadoc)
 70  
      * 
 71  
      * @see java.lang.Object#toString()
 72  
      */
 73  
     public String toString() {
 74  100
         return "(" + super.toString() + " (targetType " + this.targetType + ")(name \"" + this.name + "\")"
 75  40
                 + "(path \"" + this.path + "\"))";
 76  
     }
 77  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.