1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.sun.syndication.feed.rss;
18
19 import com.sun.syndication.common.ObjectBean;
20
21 /***
22 * Bean for images of RSS feeds.
23 * <p>
24 * @author Alejandro Abdelnur
25 *
26 */
27 public class Image extends ObjectBean {
28 private String _title;
29 private String _url;
30 private String _link;
31 private int _width = -1;
32 private int _height = -1;
33 private String _description;
34
35 /***
36 * Default constructor. All properties are set to <b>null</b>.
37 * <p>
38 *
39 */
40 public Image() {
41 }
42
43 /***
44 * Returns the image title.
45 * <p>
46 * @return the image title, <b>null</b> if none.
47 *
48 */
49 public String getTitle() {
50 return _title;
51 }
52
53 /***
54 * Sets the image title.
55 * <p>
56 * @param title the image title to set, <b>null</b> if none.
57 *
58 */
59 public void setTitle(String title) {
60 _title = title;
61 }
62
63 /***
64 * Returns the image URL.
65 * <p>
66 * @return the image URL, <b>null</b> if none.
67 *
68 */
69 public String getUrl() {
70 return _url;
71 }
72
73 /***
74 * Sets the image URL.
75 * <p>
76 * @param url the image URL to set, <b>null</b> if none.
77 *
78 */
79 public void setUrl(String url) {
80 _url = url;
81 }
82
83 /***
84 * Returns the image link.
85 * <p>
86 * @return the image link, <b>null</b> if none.
87 *
88 */
89 public String getLink() {
90 return _link;
91 }
92
93 /***
94 * Sets the image link.
95 * <p>
96 * @param link the image link to set, <b>null</b> if none.
97 *
98 */
99 public void setLink(String link) {
100 _link = link;
101 }
102
103 /***
104 * Returns the image width.
105 * <p>
106 * @return the image width, <b>null</b> if none.
107 *
108 */
109 public int getWidth() {
110 return _width;
111 }
112
113 /***
114 * Sets the image width.
115 * <p>
116 * @param width the image width to set, <b>null</b> if none.
117 *
118 */
119 public void setWidth(int width) {
120 _width = width;
121 }
122
123 /***
124 * Returns the image height.
125 * <p>
126 * @return the image height, <b>null</b> if none.
127 *
128 */
129 public int getHeight() {
130 return _height;
131 }
132
133 /***
134 * Sets the image height.
135 * <p>
136 * @param height the image height to set, <b>null</b> if none.
137 *
138 */
139 public void setHeight(int height) {
140 _height = height;
141 }
142
143 /***
144 * Returns the image description.
145 * <p>
146 * @return the image description, <b>null</b> if none.
147 *
148 */
149 public String getDescription() {
150 return _description;
151 }
152
153 /***
154 * Sets the image description.
155 * <p>
156 * @param description the image description to set, <b>null</b> if none.
157 *
158 */
159 public void setDescription(String description) {
160 _description = description;
161 }
162
163 }