1
2
3
4
5
6 package org.apache.maven.model;
7
8
9
10
11
12
13
14
15
16
17
18
19 @SuppressWarnings( "all" )
20 public class Exclusion
21 implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
22 {
23
24
25
26
27
28
29
30
31 private String artifactId;
32
33
34
35
36 private String groupId;
37
38
39
40
41 private java.util.Map<Object, InputLocation> locations;
42
43
44
45
46
47
48
49
50
51
52
53 public Exclusion clone()
54 {
55 try
56 {
57 Exclusion copy = (Exclusion) super.clone();
58
59 if ( copy.locations != null )
60 {
61 copy.locations = new java.util.LinkedHashMap( copy.locations );
62 }
63
64 return copy;
65 }
66 catch ( java.lang.Exception ex )
67 {
68 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
69 + " does not support clone()" ).initCause( ex );
70 }
71 }
72
73
74
75
76
77
78 public String getArtifactId()
79 {
80 return this.artifactId;
81 }
82
83
84
85
86
87
88 public String getGroupId()
89 {
90 return this.groupId;
91 }
92
93
94
95
96
97
98
99 public InputLocation getLocation( Object key )
100 {
101 return ( locations != null ) ? locations.get( key ) : null;
102 }
103
104
105
106
107
108
109 public void setArtifactId( String artifactId )
110 {
111 this.artifactId = artifactId;
112 }
113
114
115
116
117
118
119 public void setGroupId( String groupId )
120 {
121 this.groupId = groupId;
122 }
123
124
125
126
127
128
129
130 public void setLocation( Object key, InputLocation location )
131 {
132 if ( location != null )
133 {
134 if ( this.locations == null )
135 {
136 this.locations = new java.util.LinkedHashMap<Object, InputLocation>();
137 }
138 this.locations.put( key, location );
139 }
140 }
141
142 }