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