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