Clover coverage report - Code Coverage for hivemind release 1.0
Coverage timestamp: Wed Sep 22 2004 08:05:25 EDT
file stats: LOC: 68   Methods: 5
NCLOC: 33   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
AbstractExtensionPoint.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.impl;
 16   
 
 17   
 import org.apache.hivemind.internal.ExtensionPoint;
 18   
 import org.apache.hivemind.internal.Module;
 19   
 import org.apache.hivemind.util.ToStringBuilder;
 20   
 
 21   
 /**
 22   
  * Base class for extension points; provides a module and extensionPointId property.
 23   
  *
 24   
  * @author Howard Lewis Ship
 25   
  */
 26   
 public abstract class AbstractExtensionPoint extends BaseLocatable implements ExtensionPoint
 27   
 {
 28   
     private Module _module;
 29   
     private String _extensionPointId;
 30   
 
 31  2
     public synchronized String toString()
 32   
     {
 33  2
         ToStringBuilder builder = new ToStringBuilder(this);
 34  2
         builder.append("extensionPointId", _extensionPointId);
 35   
 
 36  2
         extendDescription(builder);
 37   
 
 38  2
         return builder.toString();
 39   
     }
 40   
 
 41   
     /**
 42   
      * Implemented in subclasses to provide details about subclass
 43   
      * properties.
 44   
      */
 45   
     protected abstract void extendDescription(ToStringBuilder builder);
 46   
 
 47  2363
     public void setExtensionPointId(String extensionPointId)
 48   
     {
 49  2363
         _extensionPointId = extensionPointId;
 50   
     }
 51   
 
 52  6110
     public String getExtensionPointId()
 53   
     {
 54  6110
         return _extensionPointId;
 55   
     }
 56   
 
 57  2363
     public void setModule(Module module)
 58   
     {
 59  2363
         _module = module;
 60   
     }
 61   
 
 62  4330
     public Module getModule()
 63   
     {
 64  4330
         return _module;
 65   
     }
 66   
 
 67   
 }
 68