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 XmlConfigConstraint {
23: private String property;
24: private String value;
25: private String serviceId;
26:
27: /**
28: * Default constructor.
29: */
30: public XmlConfigConstraint() {
31: } //end XmlConfigConstraint()
32:
33: public void setProperty(String theProperty) {
34: property = theProperty;
35: } //end setProperty()
36:
37: public String getProperty() {
38: return property;
39: } //end getProperty()
40:
41: public void setValue(String theValue) {
42: value = theValue;
43: } //end setValue()
44:
45: public String getValue() {
46: return value;
47: } //end getValue()
48:
49: public void setServiceId(String id) {
50: serviceId = id;
51: } //end setServiceId()
52:
53: public String getServiceId() {
54: return serviceId;
55: } //end getServiceId()
56:
57: public boolean equals(Object obj) {
58: XmlConfigConstraint constraint;
59:
60: constraint = (XmlConfigConstraint) obj;
61: if (constraint != null && constraint.property != null
62: && constraint.equals(constraint.property)) {
63: return true;
64: }
65:
66: return false;
67: } //end equals()
68: } //end XmlConfigConstraint
|