Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 50   Methods: 5
NCLOC: 31   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
AnySimpleType.java - 62,5% 80% 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.Set;
 13   
 
 14   
 import org.jbind.xml.base.WhiteSpaceProcessing;
 15   
 import org.jbind.xml.core.cmp.IComponentVisitor;
 16   
 import org.jbind.xml.core.cmp.ISourceInfo;
 17   
 import org.jbind.xml.core.constraint.ConstraintType;
 18   
 import org.jbind.xml.core.data.IDataCreator;
 19   
 import org.jbind.xml.core.type.IAnyType;
 20   
 import org.jbind.xml.core.type.ISimpleType;
 21   
 import org.jbind.xml.msg.IConstraintViolations;
 22   
 import org.jbind.xml.msg.XmlException;
 23   
 
 24   
 public class AnySimpleType extends BuiltInSimpleType {
 25   
 
 26  3
   public AnySimpleType(ISourceInfo aSourceInfo, String aName, IAnyType aBaseType, ConstraintType.Checker aChecker, IDataCreator aDataCreator) {
 27  3
     super(aSourceInfo, aName, aBaseType, aChecker, aDataCreator);
 28  3
     getConstraints().setWhiteSpaceProcessing(WhiteSpaceProcessing.PRESERVE);
 29   
   }
 30   
 
 31  90
   public ISimpleType createRestriction(ISourceInfo aSourceInfo, String aNamespace, String aName, String aRole, Set aFinalTypes, IConstraintViolations aViolations) {
 32  90
     return new RestrictedAtomicType(aSourceInfo, aNamespace, aName, aRole, aFinalTypes, aViolations);
 33   
   }
 34   
 
 35  3388
   public Class getSimpleStorageType() {
 36  3388
     return Object.class;
 37   
   }
 38   
 
 39  122
   public final IAnyType getInstanceType() {
 40  122
     return this;
 41   
   }
 42   
 
 43  0
   public final void accept(IComponentVisitor aVisitor) throws XmlException {
 44  0
     aVisitor.visitAnySimpleTypeStart(this);
 45  0
     visitSubComponents(aVisitor);
 46  0
     aVisitor.visitAnySimpleTypeEnd(this);
 47   
   }
 48   
 
 49   
 }
 50