]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/find/FindResultId.java
1. Fix EDKT339 Library Class Search need to get info for selected library class
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / find / FindResultId.java
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/find/FindResultId.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/find/FindResultId.java
new file mode 100644 (file)
index 0000000..3784fb3
--- /dev/null
@@ -0,0 +1,124 @@
+/** @file\r
+\r
+ The file is used to define GUID Identification used by find function\r
+\r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution.  The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+\r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ **/\r
+package org.tianocore.frameworkwizard.common.find;\r
+\r
+import java.util.Vector;\r
+\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
+import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
+\r
+public class FindResultId {\r
+\r
+    private String name = "";\r
+\r
+    private String type = "";\r
+    \r
+    private Vector<String> arch = new Vector<String>();\r
+    \r
+    private Vector<String> moduleType = new Vector<String>();\r
+    \r
+    private String help = "";\r
+\r
+    private Vector<ModuleIdentification> producedModules = new Vector<ModuleIdentification>();\r
+\r
+    private Vector<ModuleIdentification> consumedModules = new Vector<ModuleIdentification>();\r
+    \r
+    private PackageIdentification declaredBy = null;\r
+    \r
+    public FindResultId(String strName, String strType, Vector<String> vArch, String strHelp, Vector<String> vModuleType, PackageIdentification pDeclaredBy) {\r
+        this.name = (strName == null ? "" : strName);\r
+        this.type = (strType == null ? "" : strType);\r
+        this.arch = (vArch == null ? this.arch : vArch);\r
+        this.help = (strHelp == null ? "" : strHelp);\r
+        this.moduleType = (vModuleType == null ? this.moduleType : vModuleType);\r
+        this.declaredBy = pDeclaredBy;\r
+    }\r
+\r
+    public Vector<String> getArch() {\r
+        return arch;\r
+    }\r
+\r
+    public void setArch(Vector<String> arch) {\r
+        this.arch = arch;\r
+    }\r
+\r
+    public Vector<ModuleIdentification> getConsumedModules() {\r
+        return consumedModules;\r
+    }\r
+\r
+    public void setConsumedModules(Vector<ModuleIdentification> consumedModules) {\r
+        this.consumedModules = consumedModules;\r
+    }\r
+    \r
+    public void addConsumedModules(ModuleIdentification consumedModule) {\r
+        if (consumedModule != null) {\r
+            this.consumedModules.addElement(consumedModule);\r
+        }\r
+    }\r
+\r
+    public PackageIdentification getDeclaredBy() {\r
+        return declaredBy;\r
+    }\r
+\r
+    public void setDeclaredBy(PackageIdentification declaredBy) {\r
+        this.declaredBy = declaredBy;\r
+    }\r
+\r
+    public String getHelp() {\r
+        return help;\r
+    }\r
+\r
+    public void setHelp(String help) {\r
+        this.help = help;\r
+    }\r
+\r
+    public String getName() {\r
+        return name;\r
+    }\r
+\r
+    public void setName(String name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public Vector<ModuleIdentification> getProducedModules() {\r
+        return producedModules;\r
+    }\r
+\r
+    public void setProducedModules(Vector<ModuleIdentification> producedModules) {\r
+        this.producedModules = producedModules;\r
+    }\r
+    \r
+    public void addProducedModules(ModuleIdentification producedModule) {\r
+        if (producedModule != null) {\r
+            this.producedModules.addElement(producedModule);\r
+        }\r
+    }\r
+\r
+    public String getType() {\r
+        return type;\r
+    }\r
+\r
+    public void setType(String type) {\r
+        this.type = type;\r
+    }\r
+\r
+    public Vector<String> getModuleType() {\r
+        return moduleType;\r
+    }\r
+\r
+    public void setModuleType(Vector<String> moduleType) {\r
+        this.moduleType = moduleType;\r
+    }\r
+}\r