01: /**
02: * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.
03: *
04: * This program is free software; you can redistribute it and/or modify
05: * it under the terms of the latest version of the GNU Lesser General
06: * Public License as published by the Free Software Foundation;
07: *
08: * This program is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: * GNU Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public License
14: * along with this program (LICENSE.txt); if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16: */package org.jamwiki.model;
17:
18: import org.jamwiki.utils.WikiLogger;
19:
20: /**
21: * Provides an object representing a configuration value as used by
22: * {@link org.jamwiki.WikiConfiguration}.
23: */
24: public class WikiConfigurationObject {
25:
26: /** Standard logger. */
27: private static final WikiLogger logger = WikiLogger
28: .getLogger(WikiConfigurationObject.class.getName());
29:
30: private String clazz;
31: private String key;
32: private String name;
33: private String state;
34:
35: /**
36: *
37: */
38: public String getClazz() {
39: return this .clazz;
40: }
41:
42: /**
43: *
44: */
45: public void setClazz(String clazz) {
46: this .clazz = clazz;
47: }
48:
49: /**
50: *
51: */
52: public boolean isExperimental() {
53: return (this .state != null && this .state
54: .equalsIgnoreCase("experimental"));
55: }
56:
57: /**
58: *
59: */
60: public String getKey() {
61: return this .key;
62: }
63:
64: /**
65: *
66: */
67: public void setKey(String key) {
68: this .key = key;
69: }
70:
71: /**
72: *
73: */
74: public String getName() {
75: return this .name;
76: }
77:
78: /**
79: *
80: */
81: public void setName(String name) {
82: this .name = name;
83: }
84:
85: /**
86: *
87: */
88: public String getState() {
89: return this .state;
90: }
91:
92: /**
93: *
94: */
95: public void setState(String state) {
96: this.state = state;
97: }
98: }
|