Clover coverage report - Code Coverage for hivemind release 1.0-rc-2
Coverage timestamp: Sat Sep 11 2004 09:09:48 EDT
file stats: LOC: 97   Methods: 12
NCLOC: 61   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
BuilderParameter.java - 100% 100% 100%
coverage
 1   
 //  Copyright 2004 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.hivemind.service.impl;
 16   
 
 17   
 import java.util.ArrayList;
 18   
 import java.util.List;
 19   
 
 20   
 import org.apache.hivemind.impl.BaseLocatable;
 21   
 
 22   
 /**
 23   
  * Parameter object used with {@link org.apache.hivemind.service.impl.BuilderFactory}.
 24   
  * 
 25   
  * @author Howard Lewis Ship
 26   
  */
 27   
 public class BuilderParameter extends BaseLocatable
 28   
 {
 29   
     private String _className;
 30   
     private List _properties = new ArrayList();
 31   
     private List _parameters = new ArrayList();
 32   
     private List _events = new ArrayList();
 33   
     private String _initializeMethod;
 34   
     private boolean _autowireServices;
 35   
 
 36  410
     public String getClassName()
 37   
     {
 38  410
         return _className;
 39   
     }
 40   
 
 41  27
     public void addParameter(BuilderFacet facet)
 42   
     {
 43  27
         _parameters.add(facet);
 44   
     }
 45   
 
 46  410
     public List getParameters()
 47   
     {
 48  410
         return _parameters;
 49   
     }
 50   
 
 51  2161
     public void addProperty(BuilderFacet facet)
 52   
     {
 53  2161
         _properties.add(facet);
 54   
     }
 55   
 
 56  410
     public List getProperties()
 57   
     {
 58  410
         return _properties;
 59   
     }
 60   
 
 61  371
     public void setClassName(String string)
 62   
     {
 63  371
         _className = string;
 64   
     }
 65   
 
 66  3
     public void addEventRegistration(EventRegistration registration)
 67   
     {
 68  3
         _events.add(registration);
 69   
     }
 70   
 
 71  410
     public List getEventRegistrations()
 72   
     {
 73  410
         return _events;
 74   
     }
 75   
 
 76  410
     public String getInitializeMethod()
 77   
     {
 78  410
         return _initializeMethod;
 79   
     }
 80   
 
 81  102
     public void setInitializeMethod(String string)
 82   
     {
 83  102
         _initializeMethod = string;
 84   
     }
 85   
 
 86  410
     public boolean getAutowireServices()
 87   
     {
 88  410
         return _autowireServices;
 89   
     }
 90   
 
 91  368
     public void setAutowireServices(boolean autowireServices)
 92   
     {
 93  368
         _autowireServices = autowireServices;
 94   
     }
 95   
 
 96   
 }
 97