KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > syndication > feed > rss > Cloud


1 /*
2  * Copyright 2004 Sun Microsystems, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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  */

17 package com.sun.syndication.feed.rss;
18
19 import com.sun.syndication.feed.impl.ObjectBean;
20
21 import java.io.Serializable JavaDoc;
22
23 /**
24  * Bean for clouds of RSS feeds.
25  * <p>
26  * @author Alejandro Abdelnur
27  *
28  */

29 public class Cloud implements Cloneable JavaDoc,Serializable JavaDoc {
30     private ObjectBean _objBean;
31     private String JavaDoc _domain;
32     private int _port;
33     private String JavaDoc _path;
34     private String JavaDoc _registerProcedure;
35     private String JavaDoc _protocol;
36
37     /**
38      * Default constructor. All properties are set to <b>null</b>.
39      * <p>
40      *
41      */

42     public Cloud() {
43         _objBean = new ObjectBean(this.getClass(),this);
44     }
45
46     /**
47      * Creates a deep 'bean' clone of the object.
48      * <p>
49      * @return a clone of the object.
50      * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
51      *
52      */

53     public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc {
54         return _objBean.clone();
55     }
56
57     /**
58      * Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
59      * <p>
60      * @param other he reference object with which to compare.
61      * @return <b>true</b> if 'this' object is equal to the 'other' object.
62      *
63      */

64     public boolean equals(Object JavaDoc other) {
65         return _objBean.equals(other);
66     }
67
68     /**
69      * Returns a hashcode value for the object.
70      * <p>
71      * It follows the contract defined by the Object hashCode() method.
72      * <p>
73      * @return the hashcode of the bean object.
74      *
75      */

76     public int hashCode() {
77         return _objBean.hashCode();
78     }
79
80     /**
81      * Returns the String representation for the object.
82      * <p>
83      * @return String representation for the object.
84      *
85      */

86     public String JavaDoc toString() {
87         return _objBean.toString();
88     }
89
90     /**
91      * Returns the cloud domain.
92      * <p>
93      * @return the cloud domain, <b>null</b> if none.
94      *
95      */

96     public String JavaDoc getDomain() {
97         return _domain;
98     }
99
100     /**
101      * Sets the cloud domain.
102      * <p>
103      * @param domain the cloud domain to set, <b>null</b> if none.
104      *
105      */

106     public void setDomain(String JavaDoc domain) {
107         _domain = domain;
108     }
109
110     /**
111      * Returns the cloud port.
112      * <p>
113      * @return the cloud port, <b>null</b> if none.
114      *
115      */

116     public int getPort() {
117         return _port;
118     }
119
120     /**
121      * Sets the cloud port.
122      * <p>
123      * @param port the cloud port to set, <b>null</b> if none.
124      *
125      */

126     public void setPort(int port) {
127         _port = port;
128     }
129
130     /**
131      * Returns the cloud path.
132      * <p>
133      * @return the cloud path, <b>null</b> if none.
134      *
135      */

136     public String JavaDoc getPath() {
137         return _path;
138     }
139
140     /**
141      * Sets the cloud path.
142      * <p>
143      * @param path the cloud path to set, <b>null</b> if none.
144      *
145      */

146     public void setPath(String JavaDoc path) {
147         _path = path;
148     }
149
150     /**
151      * Returns the cloud register procedure.
152      * <p>
153      * @return the cloud register procedure, <b>null</b> if none.
154      *
155      */

156     public String JavaDoc getRegisterProcedure() {
157         return _registerProcedure;
158     }
159
160     /**
161      * Sets the cloud register procedure.
162      * <p>
163      * @param registerProcedure the cloud register procedure to set, <b>null</b> if none.
164      *
165      */

166     public void setRegisterProcedure(String JavaDoc registerProcedure) {
167         _registerProcedure = registerProcedure;
168     }
169
170     /**
171      * Returns the cloud protocol.
172      * <p>
173      * @return the cloud protocol, <b>null</b> if none.
174      *
175      */

176     public String JavaDoc getProtocol() {
177         return _protocol;
178     }
179
180     /**
181      * Sets the cloud protocol.
182      * <p>
183      * @param protocol the cloud protocol to set, <b>null</b> if none.
184      *
185      */

186     public void setProtocol(String JavaDoc protocol) {
187         _protocol = protocol;
188     }
189
190 }
191
Popular Tags