Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 40   Methods: 3
NCLOC: 24   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
Date.java - 9,1% 33,3% 14,3%
 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.IDate;
 15   
 import org.jbind.xml.core.data.ITimeZone;
 16   
 
 17   
 public class Date extends GDate implements IDate {
 18   
 
 19  7
   public Date(int aSign, int aYear, int aMonth, int aDay, ITimeZone aTimeZone) {
 20  7
     super(aSign, aYear, aMonth, aDay, aTimeZone);
 21   
   }
 22   
 
 23  0
   public CompareResult compareTo(IDate 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
     sb.append('-');
 34  0
     outputDay(sb);
 35  0
     outputTimeZone(sb);
 36  0
     return sb.toString();
 37   
   }
 38   
 
 39   
 }
 40