1
2
3
4
5
6
7
8 package org.apache.maven.settings;
9
10
11
12
13
14
15
16
17
18
19
20 @SuppressWarnings( "all" )
21 public class RepositoryBase
22 implements java.io.Serializable, java.lang.Cloneable
23 {
24
25
26
27
28
29
30
31
32
33
34
35
36 private String id;
37
38
39
40
41
42
43
44
45 private String name;
46
47
48
49
50
51
52
53
54 private String url;
55
56
57
58
59
60
61
62
63
64 private String layout = "default";
65
66
67
68
69
70
71
72
73
74
75
76 public RepositoryBase clone()
77 {
78 try
79 {
80 RepositoryBase copy = (RepositoryBase) super.clone();
81
82 return copy;
83 }
84 catch ( java.lang.Exception ex )
85 {
86 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
87 + " does not support clone()" ).initCause( ex );
88 }
89 }
90
91
92
93
94
95
96 public String getId()
97 {
98 return this.id;
99 }
100
101
102
103
104
105
106
107
108 public String getLayout()
109 {
110 return this.layout;
111 }
112
113
114
115
116
117
118 public String getName()
119 {
120 return this.name;
121 }
122
123
124
125
126
127
128 public String getUrl()
129 {
130 return this.url;
131 }
132
133
134
135
136
137
138 public void setId( String id )
139 {
140 this.id = id;
141 }
142
143
144
145
146
147
148
149
150 public void setLayout( String layout )
151 {
152 this.layout = layout;
153 }
154
155
156
157
158
159
160 public void setName( String name )
161 {
162 this.name = name;
163 }
164
165
166
167
168
169
170 public void setUrl( String url )
171 {
172 this.url = url;
173 }
174
175
176
177
178
179
180 public boolean equals( Object obj )
181 {
182 RepositoryBase other = (RepositoryBase) obj;
183
184 boolean retValue = false;
185
186 if ( id != null )
187 {
188 retValue = id.equals( other.id );
189 }
190
191 return retValue;
192 }
193
194
195 }