1
2
3
4
5
6
7
8 package org.apache.continuum.xmlrpc.repository;
9
10
11
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
44
45
46
47 @SuppressWarnings( "all" )
48 public class LocalRepository
49 implements java.io.Serializable
50 {
51
52
53
54
55
56
57
58
59 private int id = 0;
60
61
62
63
64 private String name;
65
66
67
68
69
70
71 private String location;
72
73
74
75
76
77
78
79 private String layout = "default";
80
81
82
83
84
85
86
87
88
89
90
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 }
111
112
113
114
115
116
117 public int getId()
118 {
119 return this.id;
120 }
121
122
123
124
125
126
127
128 public String getLayout()
129 {
130 return this.layout;
131 }
132
133
134
135
136
137
138 public String getLocation()
139 {
140 return this.location;
141 }
142
143
144
145
146
147
148 public String getName()
149 {
150 return this.name;
151 }
152
153
154
155
156
157
158 public int hashCode()
159 {
160 int result = 17;
161
162 result = 37 * result + (int) id;
163
164 return result;
165 }
166
167
168
169
170
171
172 public void setId( int id )
173 {
174 this.id = id;
175 }
176
177
178
179
180
181
182
183 public void setLayout( String layout )
184 {
185 this.layout = layout;
186 }
187
188
189
190
191
192
193 public void setLocation( String location )
194 {
195 this.location = location;
196 }
197
198
199
200
201
202
203 public void setName( String name )
204 {
205 this.name = name;
206 }
207
208
209
210
211
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 }
223
224 }