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