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