01: /*
02: * Copyright 2006 Dan Shellman
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.iscreen.impl.xml;
17:
18: /**
19: *
20: * @author Shellman, Dan
21: */
22: public class XmlConfigMessage {
23: private String key;
24: private String value;
25:
26: /**
27: * Default constructor.
28: */
29: public XmlConfigMessage() {
30: } //end XmlConfigMessage()
31:
32: public void setKey(String theKey) {
33: key = theKey;
34: } //end setKey()
35:
36: public String getKey() {
37: return key;
38: } //end getKey()
39:
40: public void setValue(String theValue) {
41: value = theValue;
42: } //end setValue()
43:
44: public String getValue() {
45: return value;
46: } //end getValue()
47:
48: public boolean equals(Object obj) {
49: XmlConfigMessage msg;
50:
51: msg = (XmlConfigMessage) obj;
52: if (msg.key != null && key != null && key.equals(msg.key)) {
53: return true;
54: }
55:
56: return false;
57: } //end equals()
58: } //end XmlConfigMessage
|