KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > hivemind > impl > TranslatorContribution


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 JavaDoc _name;
32     private Class JavaDoc _translatorClass;
33     private Translator _translator;
34
35     public String JavaDoc getName()
36     {
37         return _name;
38     }
39
40     public Class JavaDoc getTranslatorClass()
41     {
42         return _translatorClass;
43     }
44
45     public void setName(String JavaDoc name)
46     {
47         _name = name;
48     }
49
50     public void setTranslatorClass(Class JavaDoc translatorClass)
51     {
52         _translatorClass = translatorClass;
53     }
54
55     public Translator getTranslator()
56     {
57         return _translator;
58     }
59
60     public void setTranslator(Translator translator)
61     {
62         _translator = translator;
63     }
64
65 }
66
Popular Tags