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: 65   Methods: 6
NCLOC: 32   Classes: 1
 
 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  1466 public String getName()
 36    {
 37  1466 return _name;
 38    }
 39   
 40  1343 public Class getTranslatorClass()
 41    {
 42  1343 return _translatorClass;
 43    }
 44   
 45  1465 public void setName(String name)
 46    {
 47  1465 _name = name;
 48    }
 49   
 50  1342 public void setTranslatorClass(Class translatorClass)
 51    {
 52  1342 _translatorClass = translatorClass;
 53    }
 54   
 55  1465 public Translator getTranslator()
 56    {
 57  1465 return _translator;
 58    }
 59   
 60  122 public void setTranslator(Translator translator)
 61    {
 62  122 _translator = translator;
 63    }
 64   
 65    }