View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.continuum.model.system;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.apache.continuum.model.project.ProjectScmRoot;
15  import org.apache.continuum.model.release.ContinuumReleaseResult;
16  import org.apache.continuum.model.repository.AbstractPurgeConfiguration;
17  import org.apache.continuum.model.repository.DirectoryPurgeConfiguration;
18  import org.apache.continuum.model.repository.DistributedDirectoryPurgeConfiguration;
19  import org.apache.continuum.model.repository.LocalRepository;
20  import org.apache.continuum.model.repository.RepositoryPurgeConfiguration;
21  import org.apache.maven.continuum.model.project.BuildDefinition;
22  import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
23  import org.apache.maven.continuum.model.project.BuildQueue;
24  import org.apache.maven.continuum.model.project.BuildResult;
25  import org.apache.maven.continuum.model.project.ContinuumDatabase;
26  import org.apache.maven.continuum.model.project.Project;
27  import org.apache.maven.continuum.model.project.ProjectDependency;
28  import org.apache.maven.continuum.model.project.ProjectDeveloper;
29  import org.apache.maven.continuum.model.project.ProjectGroup;
30  import org.apache.maven.continuum.model.project.ProjectNotifier;
31  import org.apache.maven.continuum.model.project.Schedule;
32  import org.apache.maven.continuum.model.scm.ChangeFile;
33  import org.apache.maven.continuum.model.scm.ChangeSet;
34  import org.apache.maven.continuum.model.scm.ScmResult;
35  import org.apache.maven.continuum.project.ContinuumProjectState;
36  
37  /**
38   * Class Installation.
39   * 
40   * @version $Revision$ $Date$
41   */
42  @SuppressWarnings( "all" )
43  public class Installation
44      implements java.io.Serializable
45  {
46  
47        //--------------------------/
48       //- Class/Member Variables -/
49      //--------------------------/
50  
51      /**
52       * Field type.
53       */
54      private String type;
55  
56      /**
57       * Field varValue.
58       */
59      private String varValue;
60  
61      /**
62       * Field varName.
63       */
64      private String varName;
65  
66      /**
67       * Field name.
68       */
69      private String name;
70  
71      /**
72       * Field installationId.
73       */
74      private int installationId = 0;
75  
76  
77        //-----------/
78       //- Methods -/
79      //-----------/
80  
81      /**
82       * Method equals.
83       * 
84       * @param other
85       * @return boolean
86       */
87      public boolean equals( Object other )
88      {
89          if ( this == other )
90          {
91              return true;
92          }
93  
94          if ( !( other instanceof Installation ) )
95          {
96              return false;
97          }
98  
99          Installation that = (Installation) other;
100         boolean result = true;
101 
102         result = result && installationId == that.installationId;
103 
104         return result;
105     } //-- boolean equals( Object )
106 
107     /**
108      * Get the installationId field.
109      * 
110      * @return int
111      */
112     public int getInstallationId()
113     {
114         return this.installationId;
115     } //-- int getInstallationId()
116 
117     /**
118      * Get the name field.
119      * 
120      * @return String
121      */
122     public String getName()
123     {
124         return this.name;
125     } //-- String getName()
126 
127     /**
128      * Get the type field.
129      * 
130      * @return String
131      */
132     public String getType()
133     {
134         return this.type;
135     } //-- String getType()
136 
137     /**
138      * Get the varName field.
139      * 
140      * @return String
141      */
142     public String getVarName()
143     {
144         return this.varName;
145     } //-- String getVarName()
146 
147     /**
148      * Get the varValue field.
149      * 
150      * @return String
151      */
152     public String getVarValue()
153     {
154         return this.varValue;
155     } //-- String getVarValue()
156 
157     /**
158      * Method hashCode.
159      * 
160      * @return int
161      */
162     public int hashCode()
163     {
164         int result = 17;
165 
166         result = 37 * result + (int) installationId;
167 
168         return result;
169     } //-- int hashCode()
170 
171     /**
172      * Set the installationId field.
173      * 
174      * @param installationId
175      */
176     public void setInstallationId( int installationId )
177     {
178         this.installationId = installationId;
179     } //-- void setInstallationId( int )
180 
181     /**
182      * Set the name field.
183      * 
184      * @param name
185      */
186     public void setName( String name )
187     {
188         this.name = name;
189     } //-- void setName( String )
190 
191     /**
192      * Set the type field.
193      * 
194      * @param type
195      */
196     public void setType( String type )
197     {
198         this.type = type;
199     } //-- void setType( String )
200 
201     /**
202      * Set the varName field.
203      * 
204      * @param varName
205      */
206     public void setVarName( String varName )
207     {
208         this.varName = varName;
209     } //-- void setVarName( String )
210 
211     /**
212      * Set the varValue field.
213      * 
214      * @param varValue
215      */
216     public void setVarValue( String varValue )
217     {
218         this.varValue = varValue;
219     } //-- void setVarValue( String )
220 
221     /**
222      * Method toString.
223      * 
224      * @return String
225      */
226     public java.lang.String toString()
227     {
228         StringBuilder buf = new StringBuilder( 128 );
229 
230         buf.append( "installationId = '" );
231         buf.append( getInstallationId() );
232         buf.append( "'" );
233 
234         return buf.toString();
235     } //-- java.lang.String toString()
236 
237 }