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