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