Clover coverage report - Code Coverage for tapestry release 4.0.2
Coverage timestamp: Thu Apr 13 2006 10:52:06 EDT
file stats: LOC: 114   Methods: 15
NCLOC: 71   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ReportStatusEvent.java - 100% 100% 100%
coverage
 1    // Copyright 2005 The Apache Software Foundation
 2    //
 3    // Licensed under the Apache License, Version 2.0 (the "License");
 4    // you may not use this file except in compliance with the License.
 5    // You may obtain a copy of the License at
 6    //
 7    // http://www.apache.org/licenses/LICENSE-2.0
 8    //
 9    // Unless required by applicable law or agreed to in writing, software
 10    // distributed under the License is distributed on an "AS IS" BASIS,
 11    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12    // See the License for the specific language governing permissions and
 13    // limitations under the License.
 14   
 15    package org.apache.tapestry.event;
 16   
 17    import java.util.Collection;
 18    import java.util.EventObject;
 19   
 20    import org.apache.hivemind.util.Defense;
 21    import org.apache.tapestry.describe.DescriptionReceiver;
 22   
 23    /**
 24    * Event object used by {@link org.apache.tapestry.event.ReportStatusListener}; the event
 25    * implements {@link org.apache.tapestry.describe.DescriptionReceiver}; classes (typically,
 26    * HiveMind service implementations) that implement the listener interface will "describe"
 27    * themselves to the event.
 28    *
 29    * @author Howard M. Lewis Ship
 30    * @since 4.0
 31    */
 32    public class ReportStatusEvent extends EventObject implements DescriptionReceiver
 33    {
 34    private final DescriptionReceiver _receiver;
 35   
 36  20 public ReportStatusEvent(Object source, DescriptionReceiver receiver)
 37    {
 38  20 super(source);
 39   
 40  20 Defense.notNull(receiver, "receiver");
 41   
 42  20 _receiver = receiver;
 43    }
 44   
 45  1 public void array(String key, Object[] values)
 46    {
 47  1 _receiver.array(key, values);
 48    }
 49   
 50  68 public void collection(String key, Collection values)
 51    {
 52  68 _receiver.collection(key, values);
 53    }
 54   
 55  1 public void describeAlternate(Object alternate)
 56    {
 57  1 _receiver.describeAlternate(alternate);
 58    }
 59   
 60  2 public void property(String key, boolean value)
 61    {
 62  2 _receiver.property(key, value);
 63    }
 64   
 65  1 public void property(String key, byte value)
 66    {
 67  1 _receiver.property(key, value);
 68    }
 69   
 70  1 public void property(String key, char value)
 71    {
 72  1 _receiver.property(key, value);
 73    }
 74   
 75  1 public void property(String key, double value)
 76    {
 77  1 _receiver.property(key, value);
 78    }
 79   
 80  1 public void property(String key, float value)
 81    {
 82  1 _receiver.property(key, value);
 83    }
 84   
 85  317 public void property(String key, int value)
 86    {
 87  317 _receiver.property(key, value);
 88    }
 89   
 90  1 public void property(String key, long value)
 91    {
 92  1 _receiver.property(key, value);
 93    }
 94   
 95  26 public void property(String key, Object value)
 96    {
 97  26 _receiver.property(key, value);
 98    }
 99   
 100  1 public void property(String key, short value)
 101    {
 102  1 _receiver.property(key, value);
 103    }
 104   
 105  52 public void section(String section)
 106    {
 107  52 _receiver.section(section);
 108    }
 109   
 110  121 public void title(String title)
 111    {
 112  121 _receiver.title(title);
 113    }
 114    }