Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 63   Methods: 8
NCLOC: 41   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
GroupUseStateProxy.java 100% 72,7% 62,5% 71,4%
 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.content.IContentDesc;
 14   
 import org.jbind.xml.core.content.IElemGroupDesc;
 15   
 import org.jbind.xml.core.content.IElemUseState;
 16   
 import org.jbind.xml.core.content.IUseState;
 17   
 import org.jbind.xml.core.type.IAnyType;
 18   
 import org.jbind.xml.msg.XmlException;
 19   
 
 20   
 public class GroupUseStateProxy implements IGroupUseState {
 21   
 
 22   
   private IElemGroupDesc myElemGroupDesc;
 23   
   private IUseState myParent;
 24   
   private IGroupUseState myGroupUse = null;
 25   
 
 26  1385
   public GroupUseStateProxy(IElemGroupDesc aGroup, IUseState aParent) {
 27  1385
     myElemGroupDesc = aGroup;
 28  1385
     myParent = aParent;
 29   
   }
 30   
 
 31  263
   public IContentDesc getContentDesc() {
 32  263
     return myElemGroupDesc;
 33   
   }
 34   
 
 35  1340
   private IGroupUseState getGroupUse() {
 36  1340
     if (null == myGroupUse) {
 37  862
       myGroupUse = (IGroupUseState)myElemGroupDesc.createUseState(myParent);
 38   
     }
 39  1340
     return myGroupUse;
 40   
   }
 41   
 
 42  1161
   public IElemUseState getNextUseState(String aNamespace, String aName, IAnyType anOverloadingType, IHasLocation aHasLocation) throws XmlException {
 43  1161
     return getGroupUse().getNextUseState(aNamespace, aName, anOverloadingType, aHasLocation);
 44   
   }
 45   
 
 46  0
   public IUseState getParent() {
 47  0
     return myParent;
 48   
   }
 49   
 
 50  0
   public int getUseCounter() {
 51  0
     return getGroupUse().getUseCounter();
 52   
   }
 53   
 
 54  0
   public void isValidEnd(IHasLocation aHasLocation) throws XmlException {
 55  0
     getGroupUse().isValidEnd(aHasLocation);
 56   
   }
 57   
 
 58  179
   public void reset() {
 59  179
     getGroupUse().reset();
 60   
   }
 61   
 
 62   
 }
 63