1 /*
2 * This file is part of dependency-check-core.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * Copyright (c) 2019 Jeremy Long. All Rights Reserved.
17 */
18 package org.owasp.dependencycheck.xml.assembly;
19
20 import java.util.ArrayList;
21 import java.util.List;
22
23 /**
24 * A simple collection of .NET assembly data as collected from GrokAssembly.
25 *
26 * @author Jeremy Long
27 */
28 public class AssemblyData {
29
30 /**
31 * Processing error generated by GrokAssembly.
32 */
33 private String error;
34 /**
35 * Processing warning message generated by GrokAssembly.
36 */
37 private String warning;
38 /**
39 * The company name.
40 */
41 private String companyName;
42 /**
43 * The product name.
44 */
45 private String productName;
46 /**
47 * The product version.
48 */
49 private String productVersion;
50 /**
51 * The comments.
52 */
53 private String comments;
54 /**
55 * The file description.
56 */
57 private String fileDescription;
58 /**
59 * The file name.
60 */
61 private String fileName;
62 /**
63 * The file version.
64 */
65 private String fileVersion;
66 /**
67 * The internal name.
68 */
69 private String internalName;
70 /**
71 * The legal copyright.
72 */
73 private String legalCopyright;
74 /**
75 * The legal trademarks.
76 */
77 private String legalTrademarks;
78 /**
79 * The original file name.
80 */
81 private String originalFilename;
82 /**
83 * The full name.
84 */
85 private String fullName;
86 /**
87 * A list of namespace within the assembly.
88 */
89 private final List<String> namespaces = new ArrayList<>();
90
91 /**
92 * Get the value of error.
93 *
94 * @return the value of error
95 */
96 public String getError() {
97 return error;
98 }
99
100 /**
101 * Set the value of error.
102 *
103 * @param error new value of error
104 */
105 public void setError(String error) {
106 this.error = error;
107 }
108
109 /**
110 * Get the value of companyName.
111 *
112 * @return the value of companyName
113 */
114 public String getCompanyName() {
115 return companyName;
116 }
117
118 /**
119 * Set the value of companyName.
120 *
121 * @param companyName new value of companyName
122 */
123 public void setCompanyName(String companyName) {
124 this.companyName = companyName;
125 }
126
127 /**
128 * Get the value of productName.
129 *
130 * @return the value of productName
131 */
132 public String getProductName() {
133 return productName;
134 }
135
136 /**
137 * Set the value of productName.
138 *
139 * @param productName new value of productName
140 */
141 public void setProductName(String productName) {
142 this.productName = productName;
143 }
144
145 /**
146 * Get the value of productVersion.
147 *
148 * @return the value of productVersion
149 */
150 public String getProductVersion() {
151 return productVersion;
152 }
153
154 /**
155 * Set the value of productVersion.
156 *
157 * @param productVersion new value of productVersion
158 */
159 public void setProductVersion(String productVersion) {
160 this.productVersion = productVersion;
161 }
162
163 /**
164 * Get the value of comments.
165 *
166 * @return the value of comments
167 */
168 public String getComments() {
169 return comments;
170 }
171
172 /**
173 * Set the value of comments.
174 *
175 * @param comments new value of comments
176 */
177 public void setComments(String comments) {
178 this.comments = comments;
179 }
180
181 /**
182 * Get the value of fileDescription.
183 *
184 * @return the value of fileDescription
185 */
186 public String getFileDescription() {
187 return fileDescription;
188 }
189
190 /**
191 * Set the value of fileDescription.
192 *
193 * @param fileDescription new value of fileDescription
194 */
195 public void setFileDescription(String fileDescription) {
196 this.fileDescription = fileDescription;
197 }
198
199 /**
200 * Get the value of fileName.
201 *
202 * @return the value of fileName
203 */
204 public String getFileName() {
205 return fileName;
206 }
207
208 /**
209 * Set the value of fileName.
210 *
211 * @param fileName new value of fileName
212 */
213 public void setFileName(String fileName) {
214 this.fileName = fileName;
215 }
216
217 /**
218 * Get the value of fileVersion.
219 *
220 * @return the value of fileVersion
221 */
222 public String getFileVersion() {
223 return fileVersion;
224 }
225
226 /**
227 * Set the value of fileVersion.
228 *
229 * @param fileVersion new value of fileVersion
230 */
231 public void setFileVersion(String fileVersion) {
232 this.fileVersion = fileVersion;
233 }
234
235 /**
236 * Get the value of internalName.
237 *
238 * @return the value of internalName
239 */
240 public String getInternalName() {
241 return internalName;
242 }
243
244 /**
245 * Set the value of internalName.
246 *
247 * @param internalName new value of internalName
248 */
249 public void setInternalName(String internalName) {
250 this.internalName = internalName;
251 }
252
253 /**
254 * Get the value of legalCopyright.
255 *
256 * @return the value of legalCopyright
257 */
258 public String getLegalCopyright() {
259 return legalCopyright;
260 }
261
262 /**
263 * Set the value of legalCopyright.
264 *
265 * @param legalCopyright new value of legalCopyright
266 */
267 public void setLegalCopyright(String legalCopyright) {
268 this.legalCopyright = legalCopyright;
269 }
270
271 /**
272 * Get the value of legalTrademarks.
273 *
274 * @return the value of legalTrademarks
275 */
276 public String getLegalTrademarks() {
277 return legalTrademarks;
278 }
279
280 /**
281 * Set the value of legalTrademarks.
282 *
283 * @param legalTrademarks new value of legalTrademarks
284 */
285 public void setLegalTrademarks(String legalTrademarks) {
286 this.legalTrademarks = legalTrademarks;
287 }
288
289 /**
290 * Get the value of originalFilename.
291 *
292 * @return the value of originalFilename
293 */
294 public String getOriginalFilename() {
295 return originalFilename;
296 }
297
298 /**
299 * Set the value of originalFilename.
300 *
301 * @param originalFilename new value of originalFilename
302 */
303 public void setOriginalFilename(String originalFilename) {
304 this.originalFilename = originalFilename;
305 }
306
307 /**
308 * Get the value of fullName.
309 *
310 * @return the value of fullName
311 */
312 public String getFullName() {
313 return fullName;
314 }
315
316 /**
317 * Set the value of fullName.
318 *
319 * @param fullName new value of fullName
320 */
321 public void setFullName(String fullName) {
322 this.fullName = fullName;
323 }
324
325 /**
326 * Get the value of namespaces.
327 *
328 * @return the value of namespaces
329 */
330 public List<String> getNamespaces() {
331 return namespaces;
332 }
333
334 /**
335 * Adds a name space.
336 *
337 * @param namespace the namespace to add
338 */
339 public void addNamespace(String namespace) {
340 this.namespaces.add(namespace);
341 }
342
343 /**
344 * Get the value of warning.
345 *
346 * @return the value of warning
347 */
348 public String getWarning() {
349 return warning;
350 }
351
352 /**
353 * Set the value of warning.
354 *
355 * @param warning new value of warning
356 */
357 public void setWarning(String warning) {
358 this.warning = warning;
359 }
360
361 }