Clover coverage report - Code Coverage for hivemind release 1.0-beta-1
Coverage timestamp: Sat Jul 3 2004 09:41:37 EDT
file stats: LOC: 61   Methods: 2
NCLOC: 17   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
Occurances.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;
 16   
 
 17   
 /**
 18   
  * Identifies the number of contributions allowed to
 19   
  * a configuration extension point.
 20   
  *
 21   
  * @author Howard Lewis Ship
 22   
  */
 23   
 public final class Occurances
 24   
 {
 25   
     /**
 26   
      * An unbounded number, zero or more.
 27   
      */
 28   
     public static final Occurances UNBOUNDED = new Occurances("UNBOUNDED");
 29   
 
 30   
     /**
 31   
      * Optional, may be zero or one, but not more.
 32   
      */
 33   
 
 34   
     public static final Occurances OPTIONAL = new Occurances("OPTIONAL");
 35   
 
 36   
     /**
 37   
      * Exactly one is required.
 38   
      */
 39   
 
 40   
     public static final Occurances REQUIRED = new Occurances("REQUIRED");
 41   
 
 42   
     /**
 43   
      * At least one is required.
 44   
      */
 45   
 
 46   
     public static final Occurances ONE_PLUS = new Occurances("ONE_PLUS");
 47   
 
 48   
     private String _name;
 49   
 
 50  80
     private Occurances(String name)
 51   
     {
 52  80
         _name = name;
 53   
     }
 54   
 
 55  1
     public String toString()
 56   
     {
 57  1
         return "Occurances[" + _name + "]";
 58   
     }
 59   
 
 60   
 }
 61