KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > hivemind > definition > impl > ConfigurationParserDefinitionImpl


1 // Copyright 2007 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.definition.impl;
16
17 import org.apache.hivemind.Location;
18 import org.apache.hivemind.definition.ConfigurationParserConstructor;
19 import org.apache.hivemind.definition.ConfigurationParserDefinition;
20 import org.apache.hivemind.definition.ModuleDefinition;
21
22 /**
23  * Default implementation of {@link ConfigurationParserDefinition}.
24  *
25  * @author Achim Huegen
26  */

27 public class ConfigurationParserDefinitionImpl extends ExtensionDefinitionImpl implements ConfigurationParserDefinition
28 {
29     private String JavaDoc _inputFormat;
30     private ConfigurationParserConstructor _parserConstructor;
31
32     public ConfigurationParserDefinitionImpl(ModuleDefinition module)
33     {
34         super(module);
35     }
36     
37     public ConfigurationParserDefinitionImpl(ModuleDefinition module, Location location,
38             String JavaDoc inputFormat, ConfigurationParserConstructor parserConstructor)
39     {
40         super(module, location);
41         _inputFormat = inputFormat;
42         _parserConstructor = parserConstructor;
43     }
44     
45     /**
46      * @see org.apache.hivemind.definition.ConfigurationParserDefinition#getInputFormat()
47      */

48     public String JavaDoc getInputFormat()
49     {
50         return _inputFormat;
51     }
52
53     /**
54      * @see org.apache.hivemind.definition.ConfigurationParserDefinition#getParserConstructor()
55      */

56     public ConfigurationParserConstructor getParserConstructor()
57     {
58         return _parserConstructor;
59     }
60 }
61
Popular Tags