Clover coverage report - Code Coverage for hivemind release 1.1-beta-3
Coverage timestamp: Mon Aug 22 2005 21:38:15 EDT
file stats: LOC: 72   Methods: 8
NCLOC: 42   Classes: 1
 
 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  12665 public String getName()
 33    {
 34  12665 return _name;
 35    }
 36   
 37  10998 public boolean isRequired()
 38    {
 39  10998 return _required;
 40    }
 41   
 42  5030 public void setName(String string)
 43    {
 44  5030 _name = string;
 45    }
 46   
 47  5027 public void setRequired(boolean b)
 48    {
 49  5027 _required = b;
 50    }
 51   
 52  5028 public void setUnique(boolean b)
 53    {
 54  5028 _unique = b;
 55    }
 56   
 57  10997 public boolean isUnique()
 58    {
 59  10997 return _unique;
 60    }
 61   
 62  11042 public String getTranslator()
 63    {
 64  11042 return _translator;
 65    }
 66   
 67  5030 public void setTranslator(String string)
 68    {
 69  5030 _translator = string;
 70    }
 71   
 72    }