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