3 The file is used to define GUID Identification used by find function
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
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.
15 package org
.tianocore
.frameworkwizard
.common
.find
;
17 import java
.util
.Vector
;
19 import org
.tianocore
.frameworkwizard
.module
.Identifications
.ModuleIdentification
;
20 import org
.tianocore
.frameworkwizard
.packaging
.PackageIdentification
;
22 public class FindResultId
{
24 private String name
= "";
26 private String type
= "";
28 private Vector
<String
> arch
= new Vector
<String
>();
30 private Vector
<String
> moduleType
= new Vector
<String
>();
32 private String help
= "";
34 private Vector
<ModuleIdentification
> producedModules
= new Vector
<ModuleIdentification
>();
36 private Vector
<ModuleIdentification
> consumedModules
= new Vector
<ModuleIdentification
>();
38 private PackageIdentification declaredBy
= null;
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
;
49 public Vector
<String
> getArch() {
53 public void setArch(Vector
<String
> arch
) {
57 public Vector
<ModuleIdentification
> getConsumedModules() {
58 return consumedModules
;
61 public void setConsumedModules(Vector
<ModuleIdentification
> consumedModules
) {
62 this.consumedModules
= consumedModules
;
65 public void addConsumedModules(ModuleIdentification consumedModule
) {
66 if (consumedModule
!= null) {
67 this.consumedModules
.addElement(consumedModule
);
71 public PackageIdentification
getDeclaredBy() {
75 public void setDeclaredBy(PackageIdentification declaredBy
) {
76 this.declaredBy
= declaredBy
;
79 public String
getHelp() {
83 public void setHelp(String help
) {
87 public String
getName() {
91 public void setName(String name
) {
95 public Vector
<ModuleIdentification
> getProducedModules() {
96 return producedModules
;
99 public void setProducedModules(Vector
<ModuleIdentification
> producedModules
) {
100 this.producedModules
= producedModules
;
103 public void addProducedModules(ModuleIdentification producedModule
) {
104 if (producedModule
!= null) {
105 this.producedModules
.addElement(producedModule
);
109 public String
getType() {
113 public void setType(String type
) {
117 public Vector
<String
> getModuleType() {
121 public void setModuleType(Vector
<String
> moduleType
) {
122 this.moduleType
= moduleType
;