Clover coverage report - Code Coverage for hivemind release 1.1-beta-1
Coverage timestamp: Thu Apr 28 2005 19:53:41 EDT
file stats: LOC: 73   Methods: 8
NCLOC: 42   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
AttributeModelImpl.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.schema.impl;
 16   
 
 17   
 import org.apache.hivemind.parse.BaseAnnotationHolder;
 18   
 import org.apache.hivemind.schema.AttributeModel;
 19   
 
 20   
 /**
 21   
  * Implementation of {@link org.apache.hivemind.schema.AttributeModel}.
 22   
  *
 23   
  * @author Howard Lewis Ship
 24   
  */
 25   
 public final class AttributeModelImpl extends BaseAnnotationHolder implements AttributeModel
 26   
 {
 27   
     private String _name;
 28   
     private boolean _required;
 29   
     private boolean _unique;
 30   
     private String _translator;
 31   
 
 32  11862
     public String getName()
 33   
     {
 34  11862
         return _name;
 35   
     }
 36   
 
 37  10288
     public boolean isRequired()
 38   
     {
 39  10288
         return _required;
 40   
     }
 41   
 
 42  4755
     public void setName(String string)
 43   
     {
 44  4755
         _name = string;
 45   
     }
 46   
 
 47  4752
     public void setRequired(boolean b)
 48   
     {
 49  4752
         _required = b;
 50   
     }
 51   
 
 52  4753
     public void setUnique(boolean b)
 53   
     {
 54  4753
         _unique = b;
 55   
     }
 56   
 
 57  10287
     public boolean isUnique()
 58   
     {
 59  10287
         return _unique;
 60   
     }
 61   
 
 62  10332
     public String getTranslator()
 63   
     {
 64  10332
         return _translator;
 65   
     }
 66   
 
 67  4755
     public void setTranslator(String string)
 68   
     {
 69  4755
         _translator = string;
 70   
     }
 71   
 
 72   
 }
 73