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