Clover coverage report - Code Coverage for hivemind release 1.1-alpha-1
Coverage timestamp: Tue Jan 18 2005 07:55:08 EST
file stats: LOC: 121   Methods: 13
NCLOC: 70   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 - 94.4% 92.3% 93.5%
coverage coverage
 1   
 // Copyright 2004, 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.hivemind.parse;
 16   
 
 17   
 import org.apache.hivemind.Occurances;
 18   
 import org.apache.hivemind.internal.Visibility;
 19   
 import org.apache.hivemind.schema.Schema;
 20   
 import org.apache.hivemind.util.ToStringBuilder;
 21   
 
 22   
 /**
 23   
  * Defines a service extension point. Corresponds to the <service-point> element of the module
 24   
  * descriptor.
 25   
  * 
 26   
  * @author Howard Lewis Ship
 27   
  */
 28   
 public final class ServicePointDescriptor extends AbstractServiceDescriptor
 29   
 {
 30   
     private String _id;
 31   
 
 32   
     private String _interfaceClassName;
 33   
 
 34   
     private Schema _parametersSchema;
 35   
 
 36   
     /** @since 1.1 */
 37   
     private String _parametersSchemaId;
 38   
 
 39   
     private Occurances _parametersCount = Occurances.REQUIRED;
 40   
 
 41   
     /** @since 1.1 */
 42   
     private Visibility _visibility = Visibility.PUBLIC;
 43   
 
 44  1695
     public String getId()
 45   
     {
 46  1695
         return _id;
 47   
     }
 48   
 
 49  1692
     public String getInterfaceClassName()
 50   
     {
 51  1692
         return _interfaceClassName;
 52   
     }
 53   
 
 54  1718
     public void setId(String string)
 55   
     {
 56  1718
         _id = string;
 57   
     }
 58   
 
 59  1718
     public void setInterfaceClassName(String string)
 60   
     {
 61  1718
         _interfaceClassName = string;
 62   
     }
 63   
 
 64  1
     protected void extendDescription(ToStringBuilder builder)
 65   
     {
 66  1
         builder.append("id", _id);
 67  1
         builder.append("interfaceClassName", _interfaceClassName);
 68  1
         builder.append("parametersSchema", _parametersSchema);
 69  1
         builder.append("parametersSchemaId", _parametersSchemaId);
 70  1
         builder.append("parametersCount", _parametersCount);
 71  1
         builder.append("visibility", _visibility);
 72   
     }
 73   
 
 74  1743
     public Schema getParametersSchema()
 75   
     {
 76  1743
         return _parametersSchema;
 77   
     }
 78   
 
 79  108
     public void setParametersSchema(Schema schema)
 80   
     {
 81  108
         _parametersSchema = schema;
 82   
     }
 83   
 
 84   
     /** @since 1.1 */
 85  1800
     public String getParametersSchemaId()
 86   
     {
 87  1800
         return _parametersSchemaId;
 88   
     }
 89   
 
 90   
     /** @since 1.1 */
 91  1718
     public void setParametersSchemaId(String schemaId)
 92   
     {
 93  1718
         _parametersSchemaId = schemaId;
 94   
     }
 95   
 
 96  1691
     public Occurances getParametersCount()
 97   
     {
 98  1691
         return _parametersCount;
 99   
     }
 100   
 
 101  0
     public void setParametersCount(Occurances occurances)
 102   
     {
 103  0
         _parametersCount = occurances;
 104   
     }
 105   
 
 106   
     /**
 107   
      * @since 1.1
 108   
      */
 109  1692
     public Visibility getVisibility()
 110   
     {
 111  1692
         return _visibility;
 112   
     }
 113   
 
 114   
     /**
 115   
      * @since 1.1
 116   
      */
 117  716
     public void setVisibility(Visibility visibility)
 118   
     {
 119  716
         _visibility = visibility;
 120   
     }
 121   
 }