001 // Copyright 2004, 2005 The Apache Software Foundation
002 //
003 // Licensed under the Apache License, Version 2.0 (the "License");
004 // you may not use this file except in compliance with the License.
005 // You may obtain a copy of the License at
006 //
007 // http://www.apache.org/licenses/LICENSE-2.0
008 //
009 // Unless required by applicable law or agreed to in writing, software
010 // distributed under the License is distributed on an "AS IS" BASIS,
011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012 // See the License for the specific language governing permissions and
013 // limitations under the License.
014
015 package org.apache.hivemind.impl;
016
017 import org.apache.hivemind.schema.Translator;
018
019 /**
020 * A contribution to the <code>hivemind.Translators</code>
021 * configuration point. The configuration point defines the available
022 * translators that may be used in XML conversion rules ... however, a number of
023 * "bootstrap" translator (such as <code>class</code> -
024 * {@link org.apache.hivemind.schema.rules.ClassTranslator} ) are hardcoded (and
025 * doesn't appear in the configuration point).
026 *
027 * @author Howard Lewis Ship
028 */
029 public class TranslatorContribution extends BaseLocatable
030 {
031 private String _name;
032 private Class _translatorClass;
033 private Translator _translator;
034
035 public String getName()
036 {
037 return _name;
038 }
039
040 public Class getTranslatorClass()
041 {
042 return _translatorClass;
043 }
044
045 public void setName(String name)
046 {
047 _name = name;
048 }
049
050 public void setTranslatorClass(Class translatorClass)
051 {
052 _translatorClass = translatorClass;
053 }
054
055 public Translator getTranslator()
056 {
057 return _translator;
058 }
059
060 public void setTranslator(Translator translator)
061 {
062 _translator = translator;
063 }
064
065 }