Clover coverage report - Code Coverage for hivemind release 1.0-rc-1
Coverage timestamp: Wed Aug 25 2004 13:06:02 EDT
file stats: LOC: 76   Methods: 7
NCLOC: 43   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
ConfigurationPointDescriptor.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.parse;
 16   
 
 17   
 import org.apache.hivemind.Occurances;
 18   
 import org.apache.hivemind.impl.BaseLocatable;
 19   
 import org.apache.hivemind.schema.Schema;
 20   
 import org.apache.hivemind.util.ToStringBuilder;
 21   
 
 22   
 /**
 23   
  * Descriptor for the <configuration-point> element, which defines a configuration
 24   
  * extension point.
 25   
  *
 26   
  * @author Howard Lewis Ship
 27   
  */
 28   
 public final class ConfigurationPointDescriptor extends BaseLocatable
 29   
 {
 30   
     private String _id;
 31   
     private Occurances _count = Occurances.UNBOUNDED;
 32   
     private Schema _contributionsSchema;
 33   
 
 34  1
     public String toString()
 35   
     {
 36  1
         ToStringBuilder builder = new ToStringBuilder(this);
 37   
 
 38  1
         builder.append("id", _id);
 39  1
         builder.append("count", _count);
 40  1
         builder.append("contributionsSchema", _contributionsSchema);
 41   
 
 42  1
         return builder.toString();
 43   
     }
 44   
 
 45  820
     public Occurances getCount()
 46   
     {
 47  820
         return _count;
 48   
     }
 49   
 
 50  23
     public void setCount(Occurances occurances)
 51   
     {
 52  23
         _count = occurances;
 53   
     }
 54   
 
 55  821
     public String getId()
 56   
     {
 57  821
         return _id;
 58   
     }
 59   
 
 60  836
     public void setId(String string)
 61   
     {
 62  836
         _id = string;
 63   
     }
 64   
 
 65  824
     public Schema getContributionsSchema()
 66   
     {
 67  824
         return _contributionsSchema;
 68   
     }
 69   
 
 70  1462
     public void setContributionsSchema(Schema schema)
 71   
     {
 72  1462
         _contributionsSchema = schema;
 73   
     }
 74   
 
 75   
 }
 76