Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 47   Methods: 6
NCLOC: 29   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
ComplexTypeSC.java - 71,4% 66,7% 69,2%
 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 java.util.Collections;
 13   
 import java.util.Set;
 14   
 
 15   
 import org.jbind.xml.core.cmp.ISourceInfo;
 16   
 import org.jbind.xml.core.constraint.ConstraintType;
 17   
 import org.jbind.xml.core.type.IComplexSCType;
 18   
 import org.jbind.xml.core.type.ISimpleType;
 19   
 import org.jbind.xml.msg.IConstraintViolations;
 20   
 
 21   
 public class ComplexTypeSC extends ComplexType implements IComplexSCType {
 22   
 
 23  34
   public ComplexTypeSC(ISourceInfo aSourceInfo, String aNamespace, String aName, String aRole, Set aFinalTypes, Set aBlockTypes, boolean anIsAbstract, boolean anIsExtension) {
 24  34
     super(aSourceInfo, aNamespace, aName, aRole, aFinalTypes, aBlockTypes, anIsAbstract, anIsExtension);
 25  34
     setContentModel(new SimpleContentModel());
 26   
   }
 27   
 
 28  0
   public ISimpleType createRestriction(ISourceInfo aSourceInfo, String aNamespace, String aName, String aRole, Set aFinalTypes, IConstraintViolations aViolations) {
 29  0
     return new ComplexTypeSC(aSourceInfo, aNamespace, aName, aRole, aFinalTypes, Collections.EMPTY_SET, false, false);
 30   
   }
 31   
 
 32  188
   public boolean isComplex() {
 33  188
     return true;
 34   
   }
 35  215
   public boolean isSimple() {
 36  215
     return true;
 37   
   }
 38   
 
 39  154
   public ISimpleType getSimpleContentType() {
 40  154
     return getBaseType().getSimpleContentType();
 41   
   }
 42   
 
 43  0
   public boolean isApplicable(ConstraintType aConstraintType) {
 44  0
     return ((ISimpleType)getBaseType()).isApplicable(aConstraintType);
 45   
   }
 46   
 }
 47