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    * Modify display properties for version published.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class Version
15      implements java.io.Serializable, java.lang.Cloneable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * Where to place the version published (left, right,
24       * navigation-top, navigation-bottom, bottom).
25       */
26      private String position = "left";
27  
28  
29        //-----------/
30       //- Methods -/
31      //-----------/
32  
33      /**
34       * Method clone.
35       * 
36       * @return Version
37       */
38      public Version clone()
39      {
40          try
41          {
42              Version copy = (Version) super.clone();
43  
44              return copy;
45          }
46          catch ( java.lang.Exception ex )
47          {
48              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
49                  + " does not support clone()" ).initCause( ex );
50          }
51      } //-- Version clone()
52  
53      /**
54       * Method equals.
55       * 
56       * @param other a other object.
57       * @return boolean
58       */
59      public boolean equals( Object other )
60      {
61          if ( this == other )
62          {
63              return true;
64          }
65  
66          if ( !( other instanceof Version ) )
67          {
68              return false;
69          }
70  
71          Version that = (Version) other;
72          boolean result = true;
73  
74          result = result && ( getPosition() == null ? that.getPosition() == null : getPosition().equals( that.getPosition() ) );
75  
76          return result;
77      } //-- boolean equals( Object )
78  
79      /**
80       * Get where to place the version published (left, right,
81       * navigation-top, navigation-bottom, bottom).
82       * 
83       * @return String
84       */
85      public String getPosition()
86      {
87          return this.position;
88      } //-- String getPosition()
89  
90      /**
91       * Method hashCode.
92       * 
93       * @return int
94       */
95      public int hashCode()
96      {
97          int result = 17;
98  
99          result = 37 * result + ( position != null ? position.hashCode() : 0 );
100 
101         return result;
102     } //-- int hashCode()
103 
104     /**
105      * Set where to place the version published (left, right,
106      * navigation-top, navigation-bottom, bottom).
107      * 
108      * @param position a position object.
109      */
110     public void setPosition( String position )
111     {
112         this.position = position;
113     } //-- void setPosition( String )
114 
115     /**
116      * Method toString.
117      * 
118      * @return String
119      */
120     public java.lang.String toString()
121     {
122         StringBuilder buf = new StringBuilder( 128 );
123 
124         buf.append( "position = '" );
125         buf.append( getPosition() );
126         buf.append( "'" );
127 
128         return buf.toString();
129     } //-- java.lang.String toString()
130 
131 }