1 /***
2 *
3 * The owl-s matcher software is subject to the GNU Lesser General
4 * Public License Version 2.1 (the "License"). You may not copy or use this
5 * file, in either source code or executable form, except in compliance
6 * with the License. You may obtain a copy of the License at
7 * http://www.fsf.org/licenses/lgpl.txt or http://www.opensource.org/.
8 *
9 * Software distributed under the License is distributed on an "AS IS"
10 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied without
11 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 * PURPOSE. See the License for the specific language governing rights and
13 * limitations under the License.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this distribution; if not, write to the
17 *
18 * Free Software Foundation, Inc.,
19 * 59 Temple Place, Suite 330,
20 * Boston, MA 02111-1307 USA
21 *
22 * Copyright (C) 2003-2004
23 * TU Berlin, FG IVS
24 * Stefan Tang,
25 * Christoph Liebetruth,
26 * Michael C. Jaeger,
27 *
28 * More information available at http://ivs.tu-berlin.de/
29 *
30 * $Id$
31 *
32 */
33 package de.tuberlin.ivs.owl.matching.config;
34
35 /***
36 * Represents a configuration setup for one plug-in.
37 *
38 * @author Stefan Tang (steftang@stanford.edu)
39 * @version 1.1
40 */
41 public class PlugInConfiguration {
42 /***
43 * The name of the plug-in.
44 */
45 private String name;
46
47 /***
48 * The name of the class that implements the plug-in.
49 */
50 private String className;
51
52 /***
53 * Defines is the plug-in is active. If active the plug-in will be
54 * called during the matching algorithm. Default is false.
55 */
56 private boolean active = false;
57
58 /***
59 * Default constructor.
60 */
61 public PlugInConfiguration() {
62 }
63
64 /***
65 * Returns the name of the plug-in.
66 * @return The name.
67 */
68 public String getName() {
69 return name;
70 }
71
72 /***
73 * Sets the name of the plug-in.
74 * @param name The name of the plug-in.
75 */
76 public void setName(String name) {
77 this.name = name;
78 }
79
80 /***
81 * Returns the name of the implementing class.
82 * @return The class name.
83 */
84 public String getClassName() {
85 return className;
86 }
87
88 /***
89 * Set the name of the implementing class.
90 * @param className The class name.
91 */
92 public void setClassName(String className) {
93 this.className = className;
94 }
95
96 /***
97 * Returns the status of the plug-in.
98 * @return True if the plug-in isd active, false otherwise.
99 */
100 public boolean isActive() {
101 return active;
102 }
103
104 /***
105 * Sets the status of the plug-in.
106 * @param active True for activating, false for deactivating the plug-in.
107 */
108 public void setActive(boolean active) {
109 this.active = active;
110 }
111
112 }