KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > him > harmonise > ConfigProperty


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (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 http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * 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 JavaDoc m_sPropName = null;
34     /**
35      * The property value
36      */

37     private String JavaDoc 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 JavaDoc name, String JavaDoc val) {
54         
55         m_sPropName = name;
56         m_sPropVal = val;
57     }
58
59     /**
60      * @return Returns the property name.
61      */

62     public String JavaDoc getName() {
63         return m_sPropName;
64     }
65     /**
66      * @param propName The property to set.
67      */

68     public void setName(String JavaDoc propName) {
69         m_sPropName = propName;
70     }
71     /**
72      * @return Returns the property value.
73      */

74     public String JavaDoc getValue() {
75         return m_sPropVal;
76     }
77     /**
78      * @param propVal The value to set.
79      */

80     public void setValue(String JavaDoc propVal) {
81         m_sPropVal = propVal;
82     }
83 }
84
Popular Tags