01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.geoserver.ows;
06:
07: public class Message {
08: public String message;
09:
10: public Message() {
11: }
12:
13: public Message(String message) {
14: this .message = message;
15: }
16:
17: public Message getMessage() {
18: return this ;
19: }
20:
21: public void setMessage(String message) {
22: this .message = message;
23: }
24:
25: public boolean equals(Object obj) {
26: if (obj instanceof Message) {
27: Message other = (Message) obj;
28:
29: if (message == null) {
30: return other.message == null;
31: }
32:
33: return message.equals(other.message);
34: }
35:
36: return false;
37: }
38:
39: public int hashCode() {
40: return (message != null) ? message.hashCode() : 0;
41: }
42: }
|