2009/04/15 - Apache HiveMind has been retired.

For more information, please explore the Attic.

Clover coverage report - Code Coverage for hivemind release 1.2.1
Coverage timestamp: Fri Feb 10 2006 16:33:43 PST
file stats: LOC: 112   Methods: 11
NCLOC: 62   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ConfigurationPointDescriptor.java - 100% 100% 100%
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.impl.SchemaImpl;
 20    import org.apache.hivemind.util.ToStringBuilder;
 21   
 22    /**
 23    * Descriptor for the <configuration-point> element, which defines a configuration extension
 24    * point.
 25    *
 26    * @author Howard Lewis Ship
 27    */
 28    public final class ConfigurationPointDescriptor extends BaseAnnotationHolder
 29    {
 30    private String _id;
 31   
 32    private Occurances _count = Occurances.UNBOUNDED;
 33   
 34    private SchemaImpl _contributionsSchema;
 35   
 36    /** @since 1.1 */
 37    private String _contributionsSchemaId;
 38   
 39    /** @since 1.1 */
 40    private Visibility _visibility = Visibility.PUBLIC;
 41   
 42  1 public String toString()
 43    {
 44  1 ToStringBuilder builder = new ToStringBuilder(this);
 45   
 46  1 builder.append("id", _id);
 47  1 builder.append("count", _count);
 48  1 builder.append("contributionsSchema", _contributionsSchema);
 49  1 builder.append("contributionsSchemaId", _contributionsSchemaId);
 50  1 builder.append("visibility", _visibility);
 51   
 52  1 return builder.toString();
 53    }
 54   
 55  1039 public Occurances getCount()
 56    {
 57  1039 return _count;
 58    }
 59   
 60  24 public void setCount(Occurances occurances)
 61    {
 62  24 _count = occurances;
 63    }
 64   
 65  1069 public String getId()
 66    {
 67  1069 return _id;
 68    }
 69   
 70  1087 public void setId(String string)
 71    {
 72  1087 _id = string;
 73    }
 74   
 75  1113 public SchemaImpl getContributionsSchema()
 76    {
 77  1113 return _contributionsSchema;
 78    }
 79   
 80  760 public void setContributionsSchema(SchemaImpl schema)
 81    {
 82  760 _contributionsSchema = schema;
 83    }
 84   
 85    /** @since 1.1 */
 86  1816 public String getContributionsSchemaId()
 87    {
 88  1816 return _contributionsSchemaId;
 89    }
 90   
 91    /** @since 1.1 */
 92  1084 public void setContributionsSchemaId(String schemaId)
 93    {
 94  1084 _contributionsSchemaId = schemaId;
 95    }
 96   
 97    /**
 98    * @since 1.1
 99    */
 100  1065 public Visibility getVisibility()
 101    {
 102  1065 return _visibility;
 103    }
 104   
 105    /**
 106    * @since 1.1
 107    */
 108  3 public void setVisibility(Visibility visibility)
 109    {
 110  3 _visibility = visibility;
 111    }
 112    }