Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 32   Methods: 2
NCLOC: 17   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
IntAttribute.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.schema.element;
 11   
 
 12   
 import org.jbind.xml.msg.XmlException;
 13   
 import org.jbind.xml.msg.XmlMessages;
 14   
 
 15   
 public class IntAttribute extends Attribute {
 16   
 
 17   
   private int myInt;
 18   
 
 19  276
   public IntAttribute(ACParams anACParams) throws XmlException {
 20  276
     super(anACParams);
 21  276
     try {
 22  276
       myInt = new Integer(anACParams.value).intValue();
 23   
     } catch (Exception e) {
 24  0
       throw new XmlException(XmlMessages.invalidInteger(anACParams.value, this));
 25   
     }
 26   
   }
 27   
 
 28  276
   public int getInt() {
 29  276
     return myInt;
 30   
   }
 31   
 }
 32