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 XmlConfigFailure {
23: private String resource;
24: private String key;
25: private String message;
26: private String property;
27:
28: /**
29: * Default constructor.
30: */
31: public XmlConfigFailure() {
32: } //end XmlConfigFailure()
33:
34: public void setResource(String theResource) {
35: resource = theResource;
36: } //end setResource()
37:
38: public String getResource() {
39: return resource;
40: } //end getResource()
41:
42: public void setKey(String theKey) {
43: key = theKey;
44: } //end setKey()
45:
46: public String getKey() {
47: return key;
48: } //end getKey()
49:
50: public void setMessage(String theMessage) {
51: message = theMessage;
52: } //end setMessage()
53:
54: public String getMessage() {
55: return message;
56: } //end getMessage()
57:
58: public void setProperty(String theProperty) {
59: property = theProperty;
60: } //end setProperty()
61:
62: public String getProperty() {
63: return property;
64: } //end getProperty()
65:
66: public boolean equals(Object obj) {
67: XmlConfigFailure failure;
68:
69: failure = (XmlConfigFailure) obj;
70: if (property != null && failure.property != null
71: && property.equals(failure.property)) {
72: return true;
73: }
74:
75: return false;
76: } //end equals()
77: } //end XmlConfigFailure
|