]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/find/FindResultId.java
remove unnecessary check for NULL pointer.
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / find / FindResultId.java
CommitLineData
419558bb 1/** @file\r
2\r
3 The file is used to define GUID Identification used by find function\r
4\r
5 Copyright (c) 2006, Intel Corporation\r
6 All rights reserved. This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14 **/\r
15package org.tianocore.frameworkwizard.common.find;\r
16\r
17import java.util.Vector;\r
18\r
19import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
20import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
21\r
22public class FindResultId {\r
23\r
24 private String name = "";\r
25\r
26 private String type = "";\r
27 \r
28 private Vector<String> arch = new Vector<String>();\r
29 \r
30 private Vector<String> moduleType = new Vector<String>();\r
31 \r
32 private String help = "";\r
33\r
34 private Vector<ModuleIdentification> producedModules = new Vector<ModuleIdentification>();\r
35\r
36 private Vector<ModuleIdentification> consumedModules = new Vector<ModuleIdentification>();\r
37 \r
38 private PackageIdentification declaredBy = null;\r
39 \r
40 public FindResultId(String strName, String strType, Vector<String> vArch, String strHelp, Vector<String> vModuleType, PackageIdentification pDeclaredBy) {\r
41 this.name = (strName == null ? "" : strName);\r
42 this.type = (strType == null ? "" : strType);\r
43 this.arch = (vArch == null ? this.arch : vArch);\r
44 this.help = (strHelp == null ? "" : strHelp);\r
45 this.moduleType = (vModuleType == null ? this.moduleType : vModuleType);\r
46 this.declaredBy = pDeclaredBy;\r
47 }\r
48\r
49 public Vector<String> getArch() {\r
50 return arch;\r
51 }\r
52\r
53 public void setArch(Vector<String> arch) {\r
54 this.arch = arch;\r
55 }\r
56\r
57 public Vector<ModuleIdentification> getConsumedModules() {\r
58 return consumedModules;\r
59 }\r
60\r
61 public void setConsumedModules(Vector<ModuleIdentification> consumedModules) {\r
62 this.consumedModules = consumedModules;\r
63 }\r
64 \r
65 public void addConsumedModules(ModuleIdentification consumedModule) {\r
66 if (consumedModule != null) {\r
67 this.consumedModules.addElement(consumedModule);\r
68 }\r
69 }\r
70\r
71 public PackageIdentification getDeclaredBy() {\r
72 return declaredBy;\r
73 }\r
74\r
75 public void setDeclaredBy(PackageIdentification declaredBy) {\r
76 this.declaredBy = declaredBy;\r
77 }\r
78\r
79 public String getHelp() {\r
80 return help;\r
81 }\r
82\r
83 public void setHelp(String help) {\r
84 this.help = help;\r
85 }\r
86\r
87 public String getName() {\r
88 return name;\r
89 }\r
90\r
91 public void setName(String name) {\r
92 this.name = name;\r
93 }\r
94\r
95 public Vector<ModuleIdentification> getProducedModules() {\r
96 return producedModules;\r
97 }\r
98\r
99 public void setProducedModules(Vector<ModuleIdentification> producedModules) {\r
100 this.producedModules = producedModules;\r
101 }\r
102 \r
103 public void addProducedModules(ModuleIdentification producedModule) {\r
104 if (producedModule != null) {\r
105 this.producedModules.addElement(producedModule);\r
106 }\r
107 }\r
108\r
109 public String getType() {\r
110 return type;\r
111 }\r
112\r
113 public void setType(String type) {\r
114 this.type = type;\r
115 }\r
116\r
117 public Vector<String> getModuleType() {\r
118 return moduleType;\r
119 }\r
120\r
121 public void setModuleType(Vector<String> moduleType) {\r
122 this.moduleType = moduleType;\r
123 }\r
124}\r