Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 46   Methods: 6
NCLOC: 26   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
AnySimpleTypeData.java - 85,7% 83,3% 84,6%
 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.instance.data;
 11   
 
 12   
 import org.jbind.xml.core.data.IAnySimpleTypeData;
 13   
 import org.jbind.xml.core.data.IAnyTypeData;
 14   
 import org.jbind.xml.msg.XmlException;
 15   
 
 16   
 public class AnySimpleTypeData extends AbstractSimpleData implements IAnySimpleTypeData {
 17   
 
 18   
   private Object myValue = null;
 19   
 
 20  1503
   public void doAccept(String aString) throws XmlException {
 21  1503
     super.doAccept(aString);
 22  1503
     myValue = aString;
 23   
   }
 24   
 
 25  381
   public String getCanonicalForm_() {
 26  381
     return String.valueOf(myValue);
 27   
   }
 28   
 
 29  237
   public boolean simpleStorageValueEquals(IAnyTypeData aData) {
 30  237
     return (Object.class == aData.getType_().getSimpleStorageType()) && myValue.equals(((IAnySimpleTypeData)aData).getCanonicalForm_());
 31   
   }
 32   
 
 33  586
   public int simpleStorageValueHashCode() {
 34  586
     return myValue.hashCode();
 35   
   }
 36   
 
 37  1
   public Object getSimpleStorageObject() {
 38  1
     return myValue;
 39   
   }
 40   
 
 41  0
   public void setSimpleStorageObject(Object aValue) {
 42  0
     myValue = aValue;
 43   
   }
 44   
 
 45   
 }
 46