Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 51   Methods: 6
NCLOC: 32   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
AttrGroupRef.java - 87,5% 83,3% 85,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.cmp;
 11   
 
 12   
 import org.jbind.xml.base.ISymbolspace;
 13   
 import org.jbind.xml.base.ISymbolspaces;
 14   
 import org.jbind.xml.core.cmp.IAttributesModel;
 15   
 import org.jbind.xml.core.cmp.IComponentVisitor;
 16   
 import org.jbind.xml.core.cmp.ISourceInfo;
 17   
 import org.jbind.xml.core.content.IAttrGroupDecl;
 18   
 import org.jbind.xml.core.content.IAttrGroupRef;
 19   
 import org.jbind.xml.msg.IConstraintViolations;
 20   
 import org.jbind.xml.msg.XmlException;
 21   
 
 22   
 public class AttrGroupRef extends Component implements IAttrGroupRef {
 23   
 
 24   
   private IAttrGroupDecl myAttrGroupDecl;
 25   
 
 26  49
   public AttrGroupRef(ISourceInfo aSourceInfo, IAttrGroupDecl anAttrGroupDecl) {
 27  49
     super(aSourceInfo, anAttrGroupDecl.getNamespace(), anAttrGroupDecl.getName());
 28  49
     myAttrGroupDecl = anAttrGroupDecl;
 29   
   }
 30   
 
 31  105
   public void accept(IComponentVisitor aVisitor) throws XmlException {
 32  105
     aVisitor.visitAttrGroupRefStart(this);
 33  105
     visitSubComponents(aVisitor);
 34  105
     aVisitor.visitAttrGroupRefEnd(this);
 35   
   }
 36   
 
 37  44
   public void collectAttributeInfo(IAttributesModel aModel, IConstraintViolations aViolations) {
 38  44
     myAttrGroupDecl.collectAttributeInfo(aModel, aViolations);
 39   
   }
 40   
 
 41  52
   public ISymbolspace getSymbolspace() {
 42  52
     return ISymbolspaces.ATTRIBUTE_GROUP;
 43   
   }
 44  0
   public boolean isReference() {
 45  0
     return true;
 46   
   }
 47   
 
 48  49
   public void validate(IConstraintViolations aViolations) {}
 49   
 
 50   
 }
 51