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