1
2
3
4
5
6
7
8 package org.apache.maven.doxia.site.decoration;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class Banner
17 implements java.io.Serializable, java.lang.Cloneable
18 {
19
20
21
22
23
24
25
26
27 private String name;
28
29
30
31
32 private String src;
33
34
35
36
37 private String alt;
38
39
40
41
42 private String href;
43
44
45
46
47 private String border;
48
49
50
51
52 private String width;
53
54
55
56
57 private String height;
58
59
60
61
62
63
64
65
66
67
68
69 public Banner clone()
70 {
71 try
72 {
73 Banner copy = (Banner) super.clone();
74
75 return copy;
76 }
77 catch ( java.lang.Exception ex )
78 {
79 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
80 + " does not support clone()" ).initCause( ex );
81 }
82 }
83
84
85
86
87
88
89
90 public boolean equals( Object other )
91 {
92 if ( this == other )
93 {
94 return true;
95 }
96
97 if ( !( other instanceof Banner ) )
98 {
99 return false;
100 }
101
102 Banner that = (Banner) other;
103 boolean result = true;
104
105 result = result && ( getName() == null ? that.getName() == null : getName().equals( that.getName() ) );
106 result = result && ( getSrc() == null ? that.getSrc() == null : getSrc().equals( that.getSrc() ) );
107 result = result && ( getAlt() == null ? that.getAlt() == null : getAlt().equals( that.getAlt() ) );
108 result = result && ( getHref() == null ? that.getHref() == null : getHref().equals( that.getHref() ) );
109 result = result && ( getBorder() == null ? that.getBorder() == null : getBorder().equals( that.getBorder() ) );
110 result = result && ( getWidth() == null ? that.getWidth() == null : getWidth().equals( that.getWidth() ) );
111 result = result && ( getHeight() == null ? that.getHeight() == null : getHeight().equals( that.getHeight() ) );
112
113 return result;
114 }
115
116
117
118
119
120
121 public String getAlt()
122 {
123 return this.alt;
124 }
125
126
127
128
129
130
131 public String getBorder()
132 {
133 return this.border;
134 }
135
136
137
138
139
140
141 public String getHeight()
142 {
143 return this.height;
144 }
145
146
147
148
149
150
151 public String getHref()
152 {
153 return this.href;
154 }
155
156
157
158
159
160
161 public String getName()
162 {
163 return this.name;
164 }
165
166
167
168
169
170
171 public String getSrc()
172 {
173 return this.src;
174 }
175
176
177
178
179
180
181 public String getWidth()
182 {
183 return this.width;
184 }
185
186
187
188
189
190
191 public int hashCode()
192 {
193 int result = 17;
194
195 result = 37 * result + ( name != null ? name.hashCode() : 0 );
196 result = 37 * result + ( src != null ? src.hashCode() : 0 );
197 result = 37 * result + ( alt != null ? alt.hashCode() : 0 );
198 result = 37 * result + ( href != null ? href.hashCode() : 0 );
199 result = 37 * result + ( border != null ? border.hashCode() : 0 );
200 result = 37 * result + ( width != null ? width.hashCode() : 0 );
201 result = 37 * result + ( height != null ? height.hashCode() : 0 );
202
203 return result;
204 }
205
206
207
208
209
210
211 public void setAlt( String alt )
212 {
213 this.alt = alt;
214 }
215
216
217
218
219
220
221 public void setBorder( String border )
222 {
223 this.border = border;
224 }
225
226
227
228
229
230
231 public void setHeight( String height )
232 {
233 this.height = height;
234 }
235
236
237
238
239
240
241 public void setHref( String href )
242 {
243 this.href = href;
244 }
245
246
247
248
249
250
251 public void setName( String name )
252 {
253 this.name = name;
254 }
255
256
257
258
259
260
261 public void setSrc( String src )
262 {
263 this.src = src;
264 }
265
266
267
268
269
270
271 public void setWidth( String width )
272 {
273 this.width = width;
274 }
275
276
277
278
279
280
281 public java.lang.String toString()
282 {
283 StringBuilder buf = new StringBuilder( 128 );
284
285 buf.append( "name = '" );
286 buf.append( getName() );
287 buf.append( "'" );
288 buf.append( "\n" );
289 buf.append( "src = '" );
290 buf.append( getSrc() );
291 buf.append( "'" );
292 buf.append( "\n" );
293 buf.append( "alt = '" );
294 buf.append( getAlt() );
295 buf.append( "'" );
296 buf.append( "\n" );
297 buf.append( "href = '" );
298 buf.append( getHref() );
299 buf.append( "'" );
300 buf.append( "\n" );
301 buf.append( "border = '" );
302 buf.append( getBorder() );
303 buf.append( "'" );
304 buf.append( "\n" );
305 buf.append( "width = '" );
306 buf.append( getWidth() );
307 buf.append( "'" );
308 buf.append( "\n" );
309 buf.append( "height = '" );
310 buf.append( getHeight() );
311 buf.append( "'" );
312
313 return buf.toString();
314 }
315
316 }