Clover coverage report - JBind Project
Coverage timestamp: Fr Mai 28 2004 11:17:36 CEST
file stats: LOC: 54   Methods: 8
NCLOC: 32   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
SimpleMessage.java - 66,7% 62,5% 64,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.message;
 11   
 
 12   
 import java.util.Collections;
 13   
 import java.util.Iterator;
 14   
 import java.util.Locale;
 15   
 
 16   
 public class SimpleMessage extends AbstractMessage {
 17   
 
 18   
   private Object myParameters = null;
 19   
 
 20  374
   public SimpleMessage(IMessageFormats aMessageFormats, String aKey, Object aParameters) {
 21  374
     super(aMessageFormats, aKey);
 22  374
     myParameters = aParameters;
 23   
   }
 24   
 
 25  328
   protected Object getParameters(Locale aLocale) {
 26  328
     return myParameters;
 27   
   }
 28   
 
 29  0
   public boolean isEmpty() {
 30  0
     return false;
 31   
   }
 32   
 
 33  29
   public boolean isComposite() {
 34  29
     return false;
 35   
   }
 36   
 
 37  29
   public Iterator iterSubMessages() {
 38  29
     return Collections.EMPTY_LIST.iterator();
 39   
   }
 40   
 
 41  0
   public Iterator iterSimpleMessages() {
 42  0
     return Collections.singletonList(this).iterator();
 43   
   }
 44   
 
 45  0
   public void addTo(ICompositeMessage aCompositeMessage) {
 46  0
     aCompositeMessage.add(this);
 47   
   }
 48   
 
 49  328
   public String output(Locale aLocale, boolean anIndent, boolean anOutputContainerLines) {
 50  328
     return super.output(aLocale, anIndent, anOutputContainerLines);
 51   
   }
 52   
 
 53   
 }
 54