View Javadoc

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