01: /**
02: * $Id: SimpleWSDLURLBean.java,v 1.2 2006/01/03 18:20:36 yue Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.admin.console.wsrp.consumer;
14:
15: public class SimpleWSDLURLBean {
16: private String WSDLURL = null;
17:
18: public String getWSDLURL() {
19: return WSDLURL;
20: }
21:
22: public void setWSDLURL(String WSDLURL) {
23: this .WSDLURL = WSDLURL;
24: }
25:
26: public boolean equals(Object obj) {
27: if ((obj != null) && (obj instanceof SimpleWSDLURLBean)) {
28: SimpleWSDLURLBean other = (SimpleWSDLURLBean) obj;
29: String otherWSDLURL = other.getWSDLURL();
30:
31: if (otherWSDLURL == null) {
32: return WSDLURL == null;
33: } else {
34: return otherWSDLURL.equals(WSDLURL);
35: }
36: }
37:
38: return false;
39: }
40: }
|