View Javadoc
1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    
4    Generated by Modello 2.4.0,
5    
6    any modifications will be overwritten.
7    
8    ==============================================================
9    */
10  
11  package org.apache.maven.doxia.site.decoration;
12  
13  /**
14   * Banner logo on the masthead of the site.
15   * 
16   * @version $Revision$ $Date$
17   */
18  @SuppressWarnings( "all" )
19  public class Banner
20      implements java.io.Serializable, java.lang.Cloneable
21  {
22  
23        //--------------------------/
24       //- Class/Member Variables -/
25      //--------------------------/
26  
27      /**
28       * The name of the banner.
29       */
30      private String name;
31  
32      /**
33       * The source location of an image for the banner.
34       */
35      private String src;
36  
37      /**
38       * The alt description for the banner image.
39       */
40      private String alt;
41  
42      /**
43       * The href of a link to be used for the banner image.
44       */
45      private String href;
46  
47      /**
48       * The border to use for the banner image.
49       */
50      private String border;
51  
52      /**
53       * The width to use for the banner image.
54       */
55      private String width;
56  
57      /**
58       * The height to use for the banner image.
59       */
60      private String height;
61  
62      /**
63       * The title for the banner image.
64       */
65      private String title;
66  
67  
68        //-----------/
69       //- Methods -/
70      //-----------/
71  
72      /**
73       * Method clone.
74       * 
75       * @return Banner
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      } //-- Banner clone()
91  
92      /**
93       * Method equals.
94       * 
95       * @param other a other object.
96       * @return boolean
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     } //-- boolean equals( Object )
124 
125     /**
126      * Get the alt description for the banner image.
127      * 
128      * @return String
129      */
130     public String getAlt()
131     {
132         return this.alt;
133     } //-- String getAlt()
134 
135     /**
136      * Get the border to use for the banner image.
137      * 
138      * @return String
139      */
140     public String getBorder()
141     {
142         return this.border;
143     } //-- String getBorder()
144 
145     /**
146      * Get the height to use for the banner image.
147      * 
148      * @return String
149      */
150     public String getHeight()
151     {
152         return this.height;
153     } //-- String getHeight()
154 
155     /**
156      * Get the href of a link to be used for the banner image.
157      * 
158      * @return String
159      */
160     public String getHref()
161     {
162         return this.href;
163     } //-- String getHref()
164 
165     /**
166      * Get the name of the banner.
167      * 
168      * @return String
169      */
170     public String getName()
171     {
172         return this.name;
173     } //-- String getName()
174 
175     /**
176      * Get the source location of an image for the banner.
177      * 
178      * @return String
179      */
180     public String getSrc()
181     {
182         return this.src;
183     } //-- String getSrc()
184 
185     /**
186      * Get the title for the banner image.
187      * 
188      * @return String
189      */
190     public String getTitle()
191     {
192         return this.title;
193     } //-- String getTitle()
194 
195     /**
196      * Get the width to use for the banner image.
197      * 
198      * @return String
199      */
200     public String getWidth()
201     {
202         return this.width;
203     } //-- String getWidth()
204 
205     /**
206      * Method hashCode.
207      * 
208      * @return int
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     } //-- int hashCode()
225 
226     /**
227      * Set the alt description for the banner image.
228      * 
229      * @param alt a alt object.
230      */
231     public void setAlt( String alt )
232     {
233         this.alt = alt;
234     } //-- void setAlt( String )
235 
236     /**
237      * Set the border to use for the banner image.
238      * 
239      * @param border a border object.
240      */
241     public void setBorder( String border )
242     {
243         this.border = border;
244     } //-- void setBorder( String )
245 
246     /**
247      * Set the height to use for the banner image.
248      * 
249      * @param height a height object.
250      */
251     public void setHeight( String height )
252     {
253         this.height = height;
254     } //-- void setHeight( String )
255 
256     /**
257      * Set the href of a link to be used for the banner image.
258      * 
259      * @param href a href object.
260      */
261     public void setHref( String href )
262     {
263         this.href = href;
264     } //-- void setHref( String )
265 
266     /**
267      * Set the name of the banner.
268      * 
269      * @param name a name object.
270      */
271     public void setName( String name )
272     {
273         this.name = name;
274     } //-- void setName( String )
275 
276     /**
277      * Set the source location of an image for the banner.
278      * 
279      * @param src a src object.
280      */
281     public void setSrc( String src )
282     {
283         this.src = src;
284     } //-- void setSrc( String )
285 
286     /**
287      * Set the title for the banner image.
288      * 
289      * @param title a title object.
290      */
291     public void setTitle( String title )
292     {
293         this.title = title;
294     } //-- void setTitle( String )
295 
296     /**
297      * Set the width to use for the banner image.
298      * 
299      * @param width a width object.
300      */
301     public void setWidth( String width )
302     {
303         this.width = width;
304     } //-- void setWidth( String )
305 
306     /**
307      * Method toString.
308      * 
309      * @return String
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     } //-- java.lang.String toString()
349 
350 }