View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 2.1.2,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.doxia.site;
7   
8   /**
9    * An image.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class Image
15      implements java.io.Serializable, java.lang.Cloneable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * The source location.
24       */
25      private String src;
26  
27      /**
28       * Where to place the image relative to the displayed name
29       * (left or right).
30       */
31      private String position = "left";
32  
33      /**
34       * The alternative text to use.
35       */
36      private String alt;
37  
38      /**
39       * The width to use.
40       */
41      private String width;
42  
43      /**
44       * The height to use.
45       */
46      private String height;
47  
48      /**
49       * The style to use.
50       */
51      private String style;
52  
53  
54        //-----------/
55       //- Methods -/
56      //-----------/
57  
58      /**
59       * Method clone.
60       * 
61       * @return Image
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      } //-- Image clone()
77  
78      /**
79       * Method equals.
80       * 
81       * @param other a other object.
82       * @return boolean
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     } //-- boolean equals( Object )
108 
109     /**
110      * Get the alternative text to use.
111      * 
112      * @return String
113      */
114     public String getAlt()
115     {
116         return this.alt;
117     } //-- String getAlt()
118 
119     /**
120      * Get the height to use.
121      * 
122      * @return String
123      */
124     public String getHeight()
125     {
126         return this.height;
127     } //-- String getHeight()
128 
129     /**
130      * Get where to place the image relative to the displayed name
131      * (left or right).
132      * 
133      * @return String
134      */
135     public String getPosition()
136     {
137         return this.position;
138     } //-- String getPosition()
139 
140     /**
141      * Get the source location.
142      * 
143      * @return String
144      */
145     public String getSrc()
146     {
147         return this.src;
148     } //-- String getSrc()
149 
150     /**
151      * Get the style to use.
152      * 
153      * @return String
154      */
155     public String getStyle()
156     {
157         return this.style;
158     } //-- String getStyle()
159 
160     /**
161      * Get the width to use.
162      * 
163      * @return String
164      */
165     public String getWidth()
166     {
167         return this.width;
168     } //-- String getWidth()
169 
170     /**
171      * Method hashCode.
172      * 
173      * @return int
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     } //-- int hashCode()
188 
189     /**
190      * Set the alternative text to use.
191      * 
192      * @param alt a alt object.
193      */
194     public void setAlt( String alt )
195     {
196         this.alt = alt;
197     } //-- void setAlt( String )
198 
199     /**
200      * Set the height to use.
201      * 
202      * @param height a height object.
203      */
204     public void setHeight( String height )
205     {
206         this.height = height;
207     } //-- void setHeight( String )
208 
209     /**
210      * Set where to place the image relative to the displayed name
211      * (left or right).
212      * 
213      * @param position a position object.
214      */
215     public void setPosition( String position )
216     {
217         this.position = position;
218     } //-- void setPosition( String )
219 
220     /**
221      * Set the source location.
222      * 
223      * @param src a src object.
224      */
225     public void setSrc( String src )
226     {
227         this.src = src;
228     } //-- void setSrc( String )
229 
230     /**
231      * Set the style to use.
232      * 
233      * @param style a style object.
234      */
235     public void setStyle( String style )
236     {
237         this.style = style;
238     } //-- void setStyle( String )
239 
240     /**
241      * Set the width to use.
242      * 
243      * @param width a width object.
244      */
245     public void setWidth( String width )
246     {
247         this.width = width;
248     } //-- void setWidth( String )
249 
250     /**
251      * Method toString.
252      * 
253      * @return String
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     } //-- java.lang.String toString()
285 
286 }