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: 66   Methods: 6
NCLOC: 32   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
TranslatorContribution.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.impl;
 16   
 
 17   
 import org.apache.hivemind.schema.Translator;
 18   
 
 19   
 /**
 20   
  * A contribution to the <code>hivemind.Translators</code>
 21   
  * configuration point.  The configuration point defines the available
 22   
  * translators that may be used in XML conversion rules ... however, a number of
 23   
  * "bootstrap" translator (such as <code>class</code> - 
 24   
  * {@link org.apache.hivemind.schema.rules.ClassTranslator} ) are hardcoded (and 
 25   
  * doesn't appear in the configuration point).
 26   
  *
 27   
  * @author Howard Lewis Ship
 28   
  */
 29   
 public class TranslatorContribution extends BaseLocatable
 30   
 {
 31   
     private String _name;
 32   
     private Class _translatorClass;
 33   
     private Translator _translator;
 34   
 
 35  1267
     public String getName()
 36   
     {
 37  1267
         return _name;
 38   
     }
 39   
 
 40  1151
     public Class getTranslatorClass()
 41   
     {
 42  1151
         return _translatorClass;
 43   
     }
 44   
 
 45  1266
     public void setName(String name)
 46   
     {
 47  1266
         _name = name;
 48   
     }
 49   
 
 50  1150
     public void setTranslatorClass(Class translatorClass)
 51   
     {
 52  1150
         _translatorClass = translatorClass;
 53   
     }
 54   
 
 55  1266
     public Translator getTranslator()
 56   
     {
 57  1266
         return _translator;
 58   
     }
 59   
 
 60  115
     public void setTranslator(Translator translator)
 61   
     {
 62  115
         _translator = translator;
 63   
     }
 64   
 
 65   
 }
 66