View Javadoc

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