Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 50   Methods: 7
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
CheckContext.java - 62,5% 57,1% 60%
 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.constraint;
 11   
 
 12   
 import org.jbind.message.IMessage;
 13   
 import org.jbind.xml.Config;
 14   
 import org.jbind.xml.core.constraint.ICheckContext;
 15   
 import org.jbind.xml.core.data.IAnyTypeData;
 16   
 import org.jbind.xml.msg.IConstraintViolations;
 17   
 
 18   
 public abstract class CheckContext implements ICheckContext {
 19   
 
 20   
   protected IAnyTypeData myData = null;
 21   
   protected IConstraintViolations myViolations = null;
 22   
 
 23  6748
   public CheckContext(IAnyTypeData aData, IConstraintViolations aViolations) {
 24  6748
     myData = aData;
 25  6748
     myViolations = aViolations;
 26   
   }
 27   
 
 28  0
   public void add(IMessage aMessage) {
 29  0
     myViolations.add(aMessage);
 30   
   }
 31   
 
 32  204
   public IAnyTypeData getData() {
 33  204
     return myData;
 34   
   }
 35   
 
 36  2
   public boolean checkLanguageCode() {
 37  2
     return Config.instance.checkLanguageCode();
 38   
   }
 39  1
   public boolean checkCountryCode() {
 40  1
     return Config.instance.checkCountryCode();
 41   
   }
 42   
 
 43  0
   public String getLanguage(String aCode) {
 44  0
     return Config.instance.getLanguage(aCode);
 45   
   }
 46  0
   public String getCountry(String aCode) {
 47  0
     return Config.instance.getCountry(aCode);
 48   
   }
 49   
 }
 50