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.continuum.xmlrpc.repository;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.apache.continuum.xmlrpc.release.ContinuumReleaseResult;
15  import org.apache.continuum.xmlrpc.utils.BuildTrigger;
16  import org.apache.maven.continuum.xmlrpc.project.AddingResult;
17  import org.apache.maven.continuum.xmlrpc.project.BuildAgentConfiguration;
18  import org.apache.maven.continuum.xmlrpc.project.BuildAgentGroupConfiguration;
19  import org.apache.maven.continuum.xmlrpc.project.BuildDefinition;
20  import org.apache.maven.continuum.xmlrpc.project.BuildDefinitionTemplate;
21  import org.apache.maven.continuum.xmlrpc.project.BuildProjectTask;
22  import org.apache.maven.continuum.xmlrpc.project.BuildResult;
23  import org.apache.maven.continuum.xmlrpc.project.BuildResultSummary;
24  import org.apache.maven.continuum.xmlrpc.project.ContinuumProjectState;
25  import org.apache.maven.continuum.xmlrpc.project.Project;
26  import org.apache.maven.continuum.xmlrpc.project.ProjectDependency;
27  import org.apache.maven.continuum.xmlrpc.project.ProjectDeveloper;
28  import org.apache.maven.continuum.xmlrpc.project.ProjectGroup;
29  import org.apache.maven.continuum.xmlrpc.project.ProjectGroupSummary;
30  import org.apache.maven.continuum.xmlrpc.project.ProjectNotifier;
31  import org.apache.maven.continuum.xmlrpc.project.ProjectScmRoot;
32  import org.apache.maven.continuum.xmlrpc.project.ProjectSummary;
33  import org.apache.maven.continuum.xmlrpc.project.ReleaseListenerSummary;
34  import org.apache.maven.continuum.xmlrpc.project.Schedule;
35  import org.apache.maven.continuum.xmlrpc.scm.ChangeFile;
36  import org.apache.maven.continuum.xmlrpc.scm.ChangeSet;
37  import org.apache.maven.continuum.xmlrpc.scm.ScmResult;
38  import org.apache.maven.continuum.xmlrpc.system.Installation;
39  import org.apache.maven.continuum.xmlrpc.system.Profile;
40  import org.apache.maven.continuum.xmlrpc.system.SystemConfiguration;
41  
42  /**
43   * Class LocalRepository.
44   * 
45   * @version $Revision$ $Date$
46   */
47  @SuppressWarnings( "all" )
48  public class LocalRepository
49      implements java.io.Serializable
50  {
51  
52        //--------------------------/
53       //- Class/Member Variables -/
54      //--------------------------/
55  
56      /**
57       * Field id.
58       */
59      private int id = 0;
60  
61      /**
62       * Field name.
63       */
64      private String name;
65  
66      /**
67       * 
68       *             The file system location for this repository
69       *           .
70       */
71      private String location;
72  
73      /**
74       * 
75       *             The layout of the repository. Valid values are
76       * "default" and "legacy"
77       *           .
78       */
79      private String layout = "default";
80  
81  
82        //-----------/
83       //- Methods -/
84      //-----------/
85  
86      /**
87       * Method equals.
88       * 
89       * @param other
90       * @return boolean
91       */
92      public boolean equals( Object other )
93      {
94          if ( this == other )
95          {
96              return true;
97          }
98  
99          if ( !( other instanceof LocalRepository ) )
100         {
101             return false;
102         }
103 
104         LocalRepository that = (LocalRepository) other;
105         boolean result = true;
106 
107         result = result && id == that.id;
108 
109         return result;
110     } //-- boolean equals( Object )
111 
112     /**
113      * Get the id field.
114      * 
115      * @return int
116      */
117     public int getId()
118     {
119         return this.id;
120     } //-- int getId()
121 
122     /**
123      * Get the layout of the repository. Valid values are "default"
124      * and "legacy".
125      * 
126      * @return String
127      */
128     public String getLayout()
129     {
130         return this.layout;
131     } //-- String getLayout()
132 
133     /**
134      * Get the file system location for this repository.
135      * 
136      * @return String
137      */
138     public String getLocation()
139     {
140         return this.location;
141     } //-- String getLocation()
142 
143     /**
144      * Get the name field.
145      * 
146      * @return String
147      */
148     public String getName()
149     {
150         return this.name;
151     } //-- String getName()
152 
153     /**
154      * Method hashCode.
155      * 
156      * @return int
157      */
158     public int hashCode()
159     {
160         int result = 17;
161 
162         result = 37 * result + (int) id;
163 
164         return result;
165     } //-- int hashCode()
166 
167     /**
168      * Set the id field.
169      * 
170      * @param id
171      */
172     public void setId( int id )
173     {
174         this.id = id;
175     } //-- void setId( int )
176 
177     /**
178      * Set the layout of the repository. Valid values are "default"
179      * and "legacy".
180      * 
181      * @param layout
182      */
183     public void setLayout( String layout )
184     {
185         this.layout = layout;
186     } //-- void setLayout( String )
187 
188     /**
189      * Set the file system location for this repository.
190      * 
191      * @param location
192      */
193     public void setLocation( String location )
194     {
195         this.location = location;
196     } //-- void setLocation( String )
197 
198     /**
199      * Set the name field.
200      * 
201      * @param name
202      */
203     public void setName( String name )
204     {
205         this.name = name;
206     } //-- void setName( String )
207 
208     /**
209      * Method toString.
210      * 
211      * @return String
212      */
213     public java.lang.String toString()
214     {
215         StringBuilder buf = new StringBuilder( 128 );
216 
217         buf.append( "id = '" );
218         buf.append( getId() );
219         buf.append( "'" );
220 
221         return buf.toString();
222     } //-- java.lang.String toString()
223 
224 }