1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.commons.betwixt.examples.rss;
20
21 import java.io.Serializable;
22
23
24 /***
25 * <p>Implementation object representing an <strong>image</strong> in the
26 * <em>Rich Site Summary</em> DTD, version 0.91. This class may be subclassed
27 * to further specialize its behavior.</p>
28 *
29 * <p>Based on the Apache Commons <code>Digester</code> implementation.</p>
30 *
31 * @author Craig R. McClanahan
32 * @version $Revision: 438373 $ $Date: 2006-08-30 06:17:21 +0100 (Wed, 30 Aug 2006) $
33 */
34
35 public class Image implements Serializable {
36
37
38
39
40
41 /***
42 * The image description (1-100 characters).
43 */
44 protected String description = null;
45
46 public String getDescription() {
47 return (this.description);
48 }
49
50 public void setDescription(String description) {
51 this.description = description;
52 }
53
54
55 /***
56 * The image height in pixels (1-400).
57 */
58 protected int height = 31;
59
60 public int getHeight() {
61 return (this.height);
62 }
63
64 public void setHeight(int height) {
65 this.height = height;
66 }
67
68
69 /***
70 * The image link (1-500 characters).
71 */
72 protected String link = null;
73
74 public String getLink() {
75 return (this.link);
76 }
77
78 public void setLink(String link) {
79 this.link = link;
80 }
81
82
83 /***
84 * The image alternate text (1-100 characters).
85 */
86 protected String title = null;
87
88 public String getTitle() {
89 return (this.title);
90 }
91
92 public void setTitle(String title) {
93 this.title = title;
94 }
95
96
97 /***
98 * The image location URL (1-500 characters).
99 */
100 protected String url = null;
101
102 public String getURL() {
103 return (this.url);
104 }
105
106 public void setURL(String url) {
107 this.url = url;
108 }
109
110
111 /***
112 * The image width in pixels (1-400).
113 */
114 protected int width = 31;
115
116 public int getWidth() {
117 return (this.width);
118 }
119
120 public void setWidth(int width) {
121 this.width = width;
122 }
123 }