KickJava   Java API By Example, From Geeks To Geeks.

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


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 text input of RSS feeds.
25  * <p>
26  * @author Alejandro Abdelnur
27  *
28  */

29 public class TextInput implements Cloneable JavaDoc,Serializable JavaDoc {
30     private ObjectBean _objBean;
31     private String JavaDoc _title;
32     private String JavaDoc _description;
33     private String JavaDoc _name;
34     private String JavaDoc _link;
35
36     /**
37      * Default constructor. All properties are set to <b>null</b>.
38      * <p>
39      *
40      */

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

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

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

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

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

95     public String JavaDoc getTitle() {
96         return _title;
97     }
98
99     /**
100      * Sets the text input title.
101      * <p>
102      * @param title the text input title to set, <b>null</b> if none.
103      *
104      */

105     public void setTitle(String JavaDoc title) {
106         _title = title;
107     }
108
109     /**
110      * Returns the text input description.
111      * <p>
112      * @return the text input description, <b>null</b> if none.
113      *
114      */

115     public String JavaDoc getDescription() {
116         return _description;
117     }
118
119     /**
120      * Sets the text input description.
121      * <p>
122      * @param description the text input description to set, <b>null</b> if none.
123      *
124      */

125     public void setDescription(String JavaDoc description) {
126         _description = description;
127     }
128
129     /**
130      * Returns the text input name.
131      * <p>
132      * @return the text input name, <b>null</b> if none.
133      *
134      */

135     public String JavaDoc getName() {
136         return _name;
137     }
138
139     /**
140      * Sets the text input name.
141      * <p>
142      * @param name the text input name to set, <b>null</b> if none.
143      *
144      */

145     public void setName(String JavaDoc name) {
146         _name = name;
147     }
148
149     /**
150      * Returns the text input link.
151      * <p>
152      * @return the text input link, <b>null</b> if none.
153      *
154      */

155     public String JavaDoc getLink() {
156         return _link;
157     }
158
159     /**
160      * Sets the text input link.
161      * <p>
162      * @param link the text input link to set, <b>null</b> if none.
163      *
164      */

165     public void setLink(String JavaDoc link) {
166         _link = link;
167     }
168
169 }
170
Popular Tags