Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 47   Methods: 6
NCLOC: 28   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
SimpleType.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 java.util.Collections;
 13   
 import java.util.Map;
 14   
 import java.util.Set;
 15   
 
 16   
 import org.jbind.xml.core.cmp.ISourceInfo;
 17   
 import org.jbind.xml.core.type.ISimpleType;
 18   
 
 19   
 public abstract class SimpleType extends AbstractType implements ISimpleType {
 20   
 
 21  388
   public SimpleType(ISourceInfo aSourceInfo, String aNamespace, String aName, String aRole, Set aFinalTypes) {
 22  388
     super(aSourceInfo, aNamespace, aName, aRole, aFinalTypes, Collections.EMPTY_SET, false);
 23  388
     setContentModel(new SimpleContentModel());
 24  388
     setAttributesModel(new AttributesModel(this));
 25   
   }
 26   
 
 27  1497
   public boolean isSimple() {
 28  1497
     return true;
 29   
   }
 30   
 
 31  2887
   public boolean isComplex() {
 32  2887
     return false;
 33   
   }
 34   
 
 35  0
   public boolean isExtension() {
 36  0
     return false;
 37   
   }
 38   
 
 39  478
   public ISimpleType getSimpleContentType() {
 40  478
     return this;
 41   
   }
 42   
 
 43  291
   public final Map getXPathMethods() {
 44  291
     return Collections.EMPTY_MAP;
 45   
   }
 46   
 }
 47