Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 38   Methods: 3
NCLOC: 22   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
GYearMonth.java - 11,1% 33,3% 16,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.instance.data;
 11   
 
 12   
 import org.jbind.util.other.StrBuffer;
 13   
 import org.jbind.xml.core.data.CompareResult;
 14   
 import org.jbind.xml.core.data.IGYearMonth;
 15   
 import org.jbind.xml.core.data.ITimeZone;
 16   
 
 17   
 public class GYearMonth extends GDate implements IGYearMonth {
 18   
 
 19  1
   public GYearMonth(int aSign, int aYear, int aMonth, ITimeZone aTimeZone) {
 20  1
     super(aSign, aYear, aMonth, DEFAULT_DAY, aTimeZone);
 21   
   }
 22   
 
 23  0
   public CompareResult compareTo(IGYearMonth aDate) {
 24  0
     return doCompare((GDate)aDate);
 25   
   }
 26   
 
 27  0
   public String toString() {
 28  0
     StrBuffer sb = new StrBuffer();
 29  0
     outputSign(sb);
 30  0
     outputYear(sb);
 31  0
     sb.append('-');
 32  0
     outputMonth(sb);
 33  0
     outputTimeZone(sb);
 34  0
     return sb.toString();
 35   
   }
 36   
 
 37   
 }
 38