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