Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 34   Methods: 2
NCLOC: 18   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
ErrorMessageInfo.java - 80% 100% 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.test;
 11   
 
 12   
 import org.jbind.xml.Config;
 13   
 import org.jbind.xml.core.bridge.IRegEx;
 14   
 
 15   
 public class ErrorMessageInfo {
 16   
 
 17   
   private IRegEx myRegularExpression = null;
 18   
 
 19   
   public String pattern = null;
 20   
 
 21  29
   public ErrorMessageInfo(String aPattern) {
 22  29
     pattern = aPattern;
 23  29
     try {
 24  29
       myRegularExpression = Config.instance.createRegEx(aPattern);
 25   
     } catch (Exception e) {
 26  0
       e.printStackTrace();
 27   
     }
 28   
   }
 29   
 
 30  43
   public boolean isMatched(String aString) {
 31  43
     return myRegularExpression.matches(aString);
 32   
   }
 33   
 }
 34