1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package org.apache.maven.model;
25
26
27
28
29
30
31
32
33 @SuppressWarnings( "all" )
34 public class IssueManagement
35 implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
36 {
37
38
39
40
41
42
43
44
45 private String system;
46
47
48
49
50 private String url;
51
52
53
54
55 private java.util.Map<Object, InputLocation> locations;
56
57
58
59
60 private InputLocation location;
61
62
63
64
65 private InputLocation systemLocation;
66
67
68
69
70 private InputLocation urlLocation;
71
72
73
74
75
76
77
78
79
80
81
82 public IssueManagement clone()
83 {
84 try
85 {
86 IssueManagement copy = (IssueManagement) super.clone();
87
88 if ( copy.locations != null )
89 {
90 copy.locations = new java.util.LinkedHashMap( copy.locations );
91 }
92
93 return copy;
94 }
95 catch ( java.lang.Exception ex )
96 {
97 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
98 + " does not support clone()" ).initCause( ex );
99 }
100 }
101
102
103
104
105
106
107
108 public InputLocation getLocation( Object key )
109 {
110 if ( key instanceof String )
111 {
112 switch ( ( String ) key )
113 {
114 case "" :
115 {
116 return this.location;
117 }
118 case "system" :
119 {
120 return systemLocation;
121 }
122 case "url" :
123 {
124 return urlLocation;
125 }
126 default :
127 {
128 return getOtherLocation( key );
129 }
130 }
131 }
132 else
133 {
134 return getOtherLocation( key );
135 }
136 }
137
138
139
140
141
142
143
144 public void setLocation( Object key, InputLocation location )
145 {
146 if ( key instanceof String )
147 {
148 switch ( ( String ) key )
149 {
150 case "" :
151 {
152 this.location = location;
153 return;
154 }
155 case "system" :
156 {
157 systemLocation = location;
158 return;
159 }
160 case "url" :
161 {
162 urlLocation = location;
163 return;
164 }
165 default :
166 {
167 setOtherLocation( key, location );
168 return;
169 }
170 }
171 }
172 else
173 {
174 setOtherLocation( key, location );
175 }
176 }
177
178
179
180
181
182
183
184 public void setOtherLocation( Object key, InputLocation location )
185 {
186 if ( location != null )
187 {
188 if ( this.locations == null )
189 {
190 this.locations = new java.util.LinkedHashMap<Object, InputLocation>();
191 }
192 this.locations.put( key, location );
193 }
194 }
195
196
197
198
199
200
201
202 private InputLocation getOtherLocation( Object key )
203 {
204 return ( locations != null ) ? locations.get( key ) : null;
205 }
206
207
208
209
210
211
212 public String getSystem()
213 {
214 return this.system;
215 }
216
217
218
219
220
221
222 public String getUrl()
223 {
224 return this.url;
225 }
226
227
228
229
230
231
232 public void setSystem( String system )
233 {
234 this.system = system;
235 }
236
237
238
239
240
241
242 public void setUrl( String url )
243 {
244 this.url = url;
245 }
246
247
248
249
250
251
252 public String toString()
253 {
254 return "IssueManagement {system=" + system + ", url=" + url + "}";
255 }
256
257
258 }