01: /*
02: * The contents of this file are subject to the
03: * Mozilla Public License Version 1.1 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
06: *
07: * Software distributed under the License is distributed on an "AS IS"
08: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
09: * See the License for the specific language governing rights and
10: * limitations under the License.
11: *
12: * The Initial Developer of the Original Code is Simulacra Media Ltd.
13: * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14: *
15: * All Rights Reserved.
16: *
17: * Contributor(s):
18: */
19: package org.openharmonise.him.harmonise;
20:
21: /**
22: * This class represents a server config property with a name and value
23: *
24: * @author Michael Bell
25: * @version $Revision: 1.1 $
26: *
27: */
28: public class ConfigProperty {
29:
30: /**
31: * The property name
32: */
33: private String m_sPropName = null;
34: /**
35: * The property value
36: */
37: private String m_sPropVal = null;
38:
39: /**
40: * Constructs a new <code>ConfigProperty</code>
41: */
42: public ConfigProperty() {
43: super ();
44: }
45:
46: /**
47: * Constructs a new <code>ConfigProperty</code> with the
48: * given values
49: *
50: * @param name the property name
51: * @param val the property value
52: */
53: public ConfigProperty(String name, String val) {
54:
55: m_sPropName = name;
56: m_sPropVal = val;
57: }
58:
59: /**
60: * @return Returns the property name.
61: */
62: public String getName() {
63: return m_sPropName;
64: }
65:
66: /**
67: * @param propName The property to set.
68: */
69: public void setName(String propName) {
70: m_sPropName = propName;
71: }
72:
73: /**
74: * @return Returns the property value.
75: */
76: public String getValue() {
77: return m_sPropVal;
78: }
79:
80: /**
81: * @param propVal The value to set.
82: */
83: public void setValue(String propVal) {
84: m_sPropVal = propVal;
85: }
86: }
|