View Javadoc

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