Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 36   Methods: 4
NCLOC: 19   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
EmptyUseStateIterator.java - 50% 75% 66,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.instance.use;
 11   
 
 12   
 import org.jbind.xml.base.IHasLocation;
 13   
 import org.jbind.xml.core.cmp.IUseStateIterator;
 14   
 import org.jbind.xml.core.content.IElemDesc;
 15   
 import org.jbind.xml.core.content.IElemRefOrDecl;
 16   
 import org.jbind.xml.core.type.IAnyType;
 17   
 import org.jbind.xml.msg.XmlException;
 18   
 import org.jbind.xml.msg.XmlMessages;
 19   
 
 20   
 public class EmptyUseStateIterator implements IUseStateIterator {
 21   
 
 22   
   public static final IUseStateIterator INSTANCE = new EmptyUseStateIterator();
 23   
 
 24  3
   private EmptyUseStateIterator() {}
 25   
 
 26  1
   public IElemDesc getNextElemDesc(String aNamespace, String aName, IAnyType anOverloadingType, IHasLocation aHasLocation) throws XmlException {
 27  1
     throw new XmlException(XmlMessages.cmUnexpectedElement(aName, aHasLocation));
 28   
   }
 29   
 
 30  559
   public void isValidEnd(IHasLocation aHasLocation) {}
 31   
 
 32  0
   public IElemRefOrDecl getSubstitutionHead() {
 33  0
     return null;
 34   
   }
 35   
 }
 36