1
2
3
4
5
6
7
8 package com.soebes.maven.plugins.mlv.model;
9
10
11
12
13
14
15 @SuppressWarnings( "all" )
16 public class LicenseItem
17 implements java.io.Serializable
18 {
19
20
21
22
23
24
25
26
27
28
29
30
31 private String id;
32
33
34
35
36
37
38
39
40
41
42
43 private String description;
44
45
46
47
48 private java.util.List<String> names;
49
50
51
52
53 private java.util.List<String> urls;
54
55
56
57
58
59
60
61
62
63
64
65 public void addName( String string )
66 {
67 getNames().add( string );
68 }
69
70
71
72
73
74
75 public void addUrl( String string )
76 {
77 getUrls().add( string );
78 }
79
80
81
82
83
84
85
86 public boolean equals( Object other )
87 {
88 if ( this == other )
89 {
90 return true;
91 }
92
93 if ( !( other instanceof LicenseItem ) )
94 {
95 return false;
96 }
97
98 LicenseItem that = (LicenseItem) other;
99 boolean result = true;
100
101 result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
102
103 return result;
104 }
105
106
107
108
109
110
111
112
113
114 public String getDescription()
115 {
116 return this.description;
117 }
118
119
120
121
122
123
124 public String getId()
125 {
126 return this.id;
127 }
128
129
130
131
132
133
134 public java.util.List<String> getNames()
135 {
136 if ( this.names == null )
137 {
138 this.names = new java.util.ArrayList<String>();
139 }
140
141 return this.names;
142 }
143
144
145
146
147
148
149 public java.util.List<String> getUrls()
150 {
151 if ( this.urls == null )
152 {
153 this.urls = new java.util.ArrayList<String>();
154 }
155
156 return this.urls;
157 }
158
159
160
161
162
163
164 public int hashCode()
165 {
166 int result = 17;
167
168 result = 37 * result + ( id != null ? id.hashCode() : 0 );
169
170 return result;
171 }
172
173
174
175
176
177
178 public void removeName( String string )
179 {
180 getNames().remove( string );
181 }
182
183
184
185
186
187
188 public void removeUrl( String string )
189 {
190 getUrls().remove( string );
191 }
192
193
194
195
196
197
198
199
200
201 public void setDescription( String description )
202 {
203 this.description = description;
204 }
205
206
207
208
209
210
211 public void setId( String id )
212 {
213 this.id = id;
214 }
215
216
217
218
219
220
221 public void setNames( java.util.List<String> names )
222 {
223 this.names = names;
224 }
225
226
227
228
229
230
231
232 public void setUrls( java.util.List<String> urls )
233 {
234 this.urls = urls;
235 }
236
237
238
239
240
241
242 public java.lang.String toString()
243 {
244 StringBuilder buf = new StringBuilder( 128 );
245
246 buf.append( "id = '" );
247 buf.append( getId() );
248 buf.append( "'" );
249
250 return buf.toString();
251 }
252
253 }