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