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: 83   Methods: 9
NCLOC: 50   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
ServicePointDescriptor.java - 91.7% 88.9% 90.5%
coverage 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.parse;
 16   
 
 17   
 import org.apache.hivemind.Occurances;
 18   
 import org.apache.hivemind.schema.Schema;
 19   
 import org.apache.hivemind.util.ToStringBuilder;
 20   
 
 21   
 /**
 22   
  * Defines a service extension point. Corresponds to
 23   
  * the <service-point> element of the module descriptor.
 24   
  *
 25   
  * @author Howard Lewis Ship
 26   
  */
 27   
 public final class ServicePointDescriptor extends AbstractServiceDescriptor
 28   
 {
 29   
     private String _id;
 30   
     private String _interfaceClassName;
 31   
     private Schema _parametersSchema;
 32   
     private Occurances _parametersCount = Occurances.REQUIRED;
 33   
 
 34  1545
     public String getId()
 35   
     {
 36  1545
         return _id;
 37   
     }
 38   
 
 39  1545
     public String getInterfaceClassName()
 40   
     {
 41  1545
         return _interfaceClassName;
 42   
     }
 43   
 
 44  1565
     public void setId(String string)
 45   
     {
 46  1565
         _id = string;
 47   
     }
 48   
 
 49  1565
     public void setInterfaceClassName(String string)
 50   
     {
 51  1565
         _interfaceClassName = string;
 52   
     }
 53   
 
 54  1
     protected void extendDescription(ToStringBuilder builder)
 55   
     {
 56  1
         builder.append("id", _id);
 57  1
         builder.append("interfaceClassName", _interfaceClassName);
 58  1
         builder.append("parametersSchema", _parametersSchema);
 59  1
         builder.append("parametersCount", _parametersCount);
 60   
     }
 61   
 
 62  1546
     public Schema getParametersSchema()
 63   
     {
 64  1546
         return _parametersSchema;
 65   
     }
 66   
 
 67  1671
     public void setParametersSchema(Schema schema)
 68   
     {
 69  1671
         _parametersSchema = schema;
 70   
     }
 71   
 
 72  1544
     public Occurances getParametersCount()
 73   
     {
 74  1544
         return _parametersCount;
 75   
     }
 76   
 
 77  0
     public void setParametersCount(Occurances occurances)
 78   
     {
 79  0
         _parametersCount = occurances;
 80   
     }
 81   
 
 82   
 }
 83