Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 45   Methods: 4
NCLOC: 24   Classes: 1
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover.
 
 Source file Conditionals Statements Methods TOTAL
JobRefs.java 0% 33,3% 75% 41,7%
 1   
 /*
 2   
  * JBind
 3   
  *
 4   
  * Copyright (c) by Stefan Wachter. All rights reserved.
 5   
  *
 6   
  * Usage, modification, and redistribution is subject to license terms that are
 7   
  * available at 'http://www.jbind.org'. The JBind license is like the
 8   
  * 'Apache Software License V 1.1'.
 9   
  */
 10   
 package org.jbind.xml.schema.reader;
 11   
 
 12   
 import java.util.ArrayList;
 13   
 import java.util.Collection;
 14   
 import java.util.Iterator;
 15   
 
 16   
 import org.jbind.xml.base.IHasLocation;
 17   
 import org.jbind.xml.base.IRef;
 18   
 import org.jbind.xml.schema.instantiation.IJobRefs;
 19   
 
 20   
 public class JobRefs implements IJobRefs {
 21   
 
 22   
   private Collection myJobRefs = new ArrayList();
 23   
 
 24   
 
 25  11290
   public JobRefs() {}
 26   
 
 27   
 
 28  5004
   public void add(IRef aGlobalRef, boolean anMustBeValidated, IHasLocation aHasLocation) {
 29  5004
     myJobRefs.add(new JobRef(aGlobalRef, anMustBeValidated, aHasLocation));
 30   
   }
 31   
 
 32   
 
 33  21838
   public Iterator iterJobRefs() {
 34  21838
     return myJobRefs.iterator();
 35   
   }
 36   
 
 37  0
   public String toString() {
 38  0
     StringBuffer sb = new StringBuffer("refs: ");
 39  0
     for (Iterator i = iterJobRefs(); i.hasNext(); ) {
 40  0
       sb.append(i.next()).append(i.hasNext() ? ", " : "");
 41   
     }
 42  0
     return sb.toString();
 43   
   }
 44   
 }
 45