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