]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/EnumerationData.java
1. Change ToolCode from text field to drop down list, and user can enter their custom...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / EnumerationData.java
1 /** @file
2
3 The file is used to init all JComboBox items
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;
16
17 import java.util.Vector;
18
19 public class EnumerationData {
20 //
21 // Static data
22 //
23 public final static String EXTERNS_PCD_IS_DRIVER = "Pcd Is Driver";
24
25 public final static String EXTERNS_SPECIFICATION = "Specification";
26
27 public final static String EXTERNS_MODULE_ENTRY_POINT = "ModuleEntryPoint";
28 public final static String EXTERNS_MODULE_UNLOAD_IMAGE = "ModuleUnloadImage";
29
30 public final static String EXTERNS_CONSTRUCTOR = "Constructor";
31 public final static String EXTERNS_DESTRUCTOR = "Destructor";
32
33 public final static String EXTERNS_DRIVER_BINDING = "DriverBinding";
34 public final static String EXTERNS_COMPONENT_NAME = "ComponentName";
35 public final static String EXTERNS_DRIVER_CONFIG = "DriverConfig";
36 public final static String EXTERNS_DRIVER_DIAG = "DriverDiag";
37
38 public final static String EXTERNS_SET_VIRTUAL_ADDRESS_MAP_CALL_BACK = "SetVirtualAddressMapCallBack";
39 public final static String EXTERNS_EXIT_BOOT_SERVICES_CALL_BACK = "ExitBootServicesCallBack";
40
41 //
42 // Common data
43 //
44 public Vector<String> vSupportedArchitectures = new Vector<String>();
45
46 public Vector<String> vEnabled = new Vector<String>();
47
48 public Vector<String> vBoolean = new Vector<String>();
49
50 //
51 // Used by Msa Header
52 //
53 public Vector<String> vModuleType = new Vector<String>();
54
55 public Vector<String> vCompontentType = new Vector<String>();
56
57 //
58 // Used by Library Class Definitions
59 //
60 public Vector<String> vLibraryUsage = new Vector<String>();
61
62 public Vector<String> vFrameworkModuleTypes = new Vector<String>();
63
64 public Vector<String> vLibClassDef = new Vector<String>();
65
66 public Vector<String> vLibClassDefBase = new Vector<String>();
67
68 public Vector<String> vLibClassDefPei = new Vector<String>();
69
70 public Vector<String> vLibClassDefPeim = new Vector<String>();
71
72 public Vector<String> vLibClassDefDxeCore = new Vector<String>();
73
74 public Vector<String> vLibClassDefDxeDriver = new Vector<String>();
75
76 public Vector<String> vLibClassDefDxeSmmDriver = new Vector<String>();
77
78 public Vector<String> vLibClassDefUefiDriver = new Vector<String>();
79
80 //
81 // Used by Source Files
82 //
83 public Vector<String> vSourceFilesToolChainFamily = new Vector<String>();
84
85 public Vector<String> vSourceFilesFileType = new Vector<String>();
86
87 public Vector<String> vToolCode = new Vector<String>();
88
89 //
90 // Used by Package Dependencies
91 //
92 public Vector<String> vPackageUsage = new Vector<String>();
93
94 //
95 // Used by Protocols
96 //
97 public Vector<String> vProtocolUsage = new Vector<String>();
98
99 public Vector<String> vProtocolNotifyUsage = new Vector<String>();
100
101 public Vector<String> vProtocolType = new Vector<String>();
102
103 //
104 // Used by Events
105 //
106 public Vector<String> vEventType = new Vector<String>();
107
108 public Vector<String> vEventUsage = new Vector<String>();
109
110 public Vector<String> vEventGroup = new Vector<String>();
111
112 //
113 // Used by Hobs
114 //
115 public Vector<String> vHobType = new Vector<String>();
116
117 public Vector<String> vHobUsage = new Vector<String>();
118
119 //
120 // Used by Ppis
121 //
122 public Vector<String> vPpiType = new Vector<String>();
123
124 public Vector<String> vPpiUsage = new Vector<String>();
125
126 public Vector<String> vPpiNotifyUsage = new Vector<String>();
127
128 //
129 // Used by Variable
130 //
131 public Vector<String> vVariableUsage = new Vector<String>();
132
133 //
134 // Used by Boot Mode
135 //
136 public Vector<String> vBootModeNames = new Vector<String>();
137
138 public Vector<String> vBootModeUsage = new Vector<String>();
139
140 //
141 // Used by System Tables
142 //
143 public Vector<String> vSystemTableUsage = new Vector<String>();
144
145 //
146 // Used by Data Hubs
147 //
148 public Vector<String> vDataHubUsage = new Vector<String>();
149
150 //
151 // Used by Hii Packages
152 //
153 public Vector<String> vHiiPackageUsage = new Vector<String>();
154
155 //
156 // Used by Guid
157 //
158 public Vector<String> vGuidUsage = new Vector<String>();
159
160 //
161 // Used by Externs
162 //
163 public Vector<String> vExternTypes = new Vector<String>();
164
165 public Vector<String> vPcdDriverTypes = new Vector<String>();
166
167 //
168 // Used by Pcd
169 //
170 public Vector<String> vPcdItemTypes = new Vector<String>();
171
172 public EnumerationData() {
173 init();
174 }
175
176 private void init() {
177 //
178 // Init common data first
179 //
180 initSupportedArchitectures();
181 initEnabled();
182 initBoolean();
183
184 //
185 // Used by Msa header
186 //
187 initModuleType();
188
189 //
190 // Used by Library Class Definitions
191 //
192 initLibraryUsage();
193 initFrameworkModuleTypes();
194 initLibClassDefBase();
195 initLibClassDefPei();
196 initLibClassDefPeim();
197 initLibClassDefDxeCore();
198 initLibClassDefDxeDriver();
199 initLibClassDefDxeSmmDriver();
200 initLibClassDefUefiDriver();
201 initLibClassDef();
202
203 //
204 // Used by Library Class Definitions
205 //
206 initSourceFilesToolChainFamily();
207 initSourceFilesFileType();
208 initToolCode();
209
210 //
211 // Used by Package Dependencies
212 //
213 initPackageUsage();
214
215 //
216 // Used by Protocols
217 //
218 initProtocolType();
219 initProtocolUsage();
220 initProtocolNotifyUsage();
221
222 //
223 // Used by Events
224 //
225 initEventType();
226 initEventUsage();
227 initEventGroup();
228
229 //
230 // Used by Hobs
231 //
232 initHobType();
233 initHobUsage();
234
235 //
236 // Used by Ppis
237 //
238 initPpiType();
239 initPpiUsage();
240 initPpiNotifyUsage();
241
242 //
243 // Used by Variable
244 //
245 initVariableUsage();
246
247 //
248 // Used by Boot Mode
249 //
250 initBootModeNames();
251 initBootModeUsage();
252
253 //
254 // Used by System Tables
255 //
256 initSystemTableUsage();
257
258 //
259 // Used by Data Hubs
260 //
261 initDataHubUsage();
262
263 //
264 // Used by Hii Packages
265 //
266 initHiiPackages();
267
268 //
269 // Used by Guid
270 //
271 initGuidUsage();
272
273 //
274 // Used by Externs
275 //
276 initExternTypes();
277 initPcdDriverTypes();
278
279 //
280 // Used by Pcd
281 //
282 initPcdItemTypes();
283
284 }
285
286 private void initEnabled() {
287 vEnabled.removeAllElements();
288 vEnabled.addElement("Disabled");
289 vEnabled.addElement("Enabled");
290 }
291
292 private void initBoolean() {
293 vBoolean.removeAllElements();
294 vBoolean.addElement("False");
295 vBoolean.addElement("True");
296 }
297
298 private void initModuleType() {
299 vModuleType.removeAllElements();
300 vModuleType.addElement("BASE");
301 vModuleType.addElement("SEC");
302 vModuleType.addElement("PEI_CORE");
303 vModuleType.addElement("PEIM");
304 vModuleType.addElement("DXE_CORE");
305 vModuleType.addElement("DXE_DRIVER");
306 vModuleType.addElement("DXE_RUNTIME_DRIVER");
307 vModuleType.addElement("DXE_SAL_DRIVER");
308 vModuleType.addElement("DXE_SMM_DRIVER");
309 vModuleType.addElement("TOOL");
310 vModuleType.addElement("UEFI_DRIVER");
311 vModuleType.addElement("UEFI_APPLICATION");
312 vModuleType.addElement("USER_DEFINED");
313 Sort.sortVectorString(vModuleType, DataType.SORT_TYPE_ASCENDING);
314 }
315
316 // private void initComponentType() {
317 // vCompontentType.removeAllElements();
318 // vCompontentType.addElement("APRIORI");
319 // vCompontentType.addElement("LIBRARY");
320 // vCompontentType.addElement("FV_IMAGE_FILE");
321 // vCompontentType.addElement("BS_DRIVER");
322 // vCompontentType.addElement("RT_DRIVER");
323 // vCompontentType.addElement("SAL_RT_DRIVER");
324 // vCompontentType.addElement("PE32_PEIM");
325 // vCompontentType.addElement("PIC_PEIM");
326 // vCompontentType.addElement("COMBINED_PEIM_DRIVER");
327 // vCompontentType.addElement("PEI_CORE");
328 // vCompontentType.addElement("DXE_CORE");
329 // vCompontentType.addElement("APPLICATION");
330 // vCompontentType.addElement("BS_DRIVER_EFI");
331 // vCompontentType.addElement("SHELLAPP");
332 // }
333
334 private void initSupportedArchitectures() {
335 vSupportedArchitectures.removeAllElements();
336 vSupportedArchitectures.addElement("EBC");
337 vSupportedArchitectures.addElement("IA32");
338 vSupportedArchitectures.addElement("X64");
339 vSupportedArchitectures.addElement("IPF");
340 vSupportedArchitectures.addElement("ARM");
341 vSupportedArchitectures.addElement("PPC");
342 }
343
344 private void initLibraryUsage() {
345 vLibraryUsage.removeAllElements();
346 vLibraryUsage.addElement("ALWAYS_CONSUMED");
347 vLibraryUsage.addElement("SOMETIMES_CONSUMED");
348 vLibraryUsage.addElement("ALWAYS_PRODUCED");
349 vLibraryUsage.addElement("SOMETIMES_PRODUCED");
350 vLibraryUsage.addElement("DEFAULT");
351 vLibraryUsage.addElement("PRIVATE");
352 }
353
354 private void initFrameworkModuleTypes() {
355 vFrameworkModuleTypes.removeAllElements();
356 vFrameworkModuleTypes.addElement("BASE");
357 vFrameworkModuleTypes.addElement("SEC");
358 vFrameworkModuleTypes.addElement("PEI_CORE");
359 vFrameworkModuleTypes.addElement("PEIM");
360 vFrameworkModuleTypes.addElement("DXE_CORE");
361 vFrameworkModuleTypes.addElement("DXE_DRIVER");
362 vFrameworkModuleTypes.addElement("DXE_RUNTIME_DRIVER");
363 vFrameworkModuleTypes.addElement("DXE_SAL_DRIVER");
364 vFrameworkModuleTypes.addElement("DXE_SMM_DRIVER");
365 vFrameworkModuleTypes.addElement("TOOL");
366 vFrameworkModuleTypes.addElement("UEFI_DRIVER");
367 vFrameworkModuleTypes.addElement("UEFI_APPLICATION");
368 vFrameworkModuleTypes.addElement("USER_DEFINED");
369 Sort.sortVectorString(vFrameworkModuleTypes, DataType.SORT_TYPE_ASCENDING);
370 }
371
372 private void initLibClassDef() {
373 vLibClassDef.removeAllElements();
374 for (int index = 0; index < vLibClassDefBase.size(); index++) {
375 vLibClassDef.addElement(vLibClassDefBase.elementAt(index));
376 }
377 for (int index = 0; index < vLibClassDefPei.size(); index++) {
378 vLibClassDef.addElement(vLibClassDefPei.elementAt(index));
379 }
380 for (int index = 0; index < vLibClassDefPeim.size(); index++) {
381 vLibClassDef.addElement(vLibClassDefPeim.elementAt(index));
382 }
383 for (int index = 0; index < vLibClassDefDxeCore.size(); index++) {
384 vLibClassDef.addElement(vLibClassDefDxeCore.elementAt(index));
385 }
386 for (int index = 0; index < vLibClassDefDxeDriver.size(); index++) {
387 vLibClassDef.addElement(vLibClassDefDxeDriver.elementAt(index));
388 }
389 for (int index = 0; index < vLibClassDefDxeSmmDriver.size(); index++) {
390 vLibClassDef.addElement(vLibClassDefDxeSmmDriver.elementAt(index));
391 }
392 for (int index = 0; index < vLibClassDefUefiDriver.size(); index++) {
393 vLibClassDef.addElement(vLibClassDefUefiDriver.elementAt(index));
394 }
395 }
396
397 private void initLibClassDefBase() {
398 vLibClassDefBase.removeAllElements();
399 vLibClassDefBase.addElement("BaseLib");
400 vLibClassDefBase.addElement("BaseMemoryLib");
401 vLibClassDefBase.addElement("CacheMaintenanceLib");
402 vLibClassDefBase.addElement("DebugLib");
403 vLibClassDefBase.addElement("IoLib");
404 vLibClassDefBase.addElement("PcdLib");
405 vLibClassDefBase.addElement("PciCf8Lib");
406 vLibClassDefBase.addElement("PciExpressLib");
407 vLibClassDefBase.addElement("PciLib");
408 vLibClassDefBase.addElement("PeCoffGetEntryPointLib");
409 vLibClassDefBase.addElement("PeCoffLib");
410 vLibClassDefBase.addElement("PerformanceLib");
411 vLibClassDefBase.addElement("PrintLib");
412 vLibClassDefBase.addElement("SmbusLib");
413 vLibClassDefBase.addElement("TimerLib");
414 }
415
416 private void initLibClassDefPei() {
417 vLibClassDefPei.removeAllElements();
418 vLibClassDefPei.addElement("PeiCoreEntryPoint");
419 }
420
421 private void initLibClassDefPeim() {
422 vLibClassDefPeim.removeAllElements();
423 vLibClassDefPeim.addElement("BaseMemoryLib");
424 vLibClassDefPeim.addElement("DebugLib");
425 vLibClassDefPeim.addElement("HobLib");
426 vLibClassDefPeim.addElement("IoLib");
427 vLibClassDefPeim.addElement("MemoryAllocationLib");
428 vLibClassDefPeim.addElement("PcdLib");
429 vLibClassDefPeim.addElement("PeiCoreLib");
430 vLibClassDefPeim.addElement("PeiServicesTablePointerLib");
431 vLibClassDefPeim.addElement("PeimEntryPoint");
432 vLibClassDefPeim.addElement("ReportStatusCodeLib");
433 vLibClassDefPeim.addElement("ResourcePublicationLib");
434 vLibClassDefPeim.addElement("SmbusLib");
435 }
436
437 private void initLibClassDefDxeCore() {
438 vLibClassDefDxeCore.removeAllElements();
439 vLibClassDefDxeCore.addElement("DxeCoreEntryPoint");
440 vLibClassDefDxeCore.addElement("HobLib");
441 }
442
443 private void initLibClassDefDxeDriver() {
444 vLibClassDefDxeDriver.removeAllElements();
445 vLibClassDefDxeDriver.addElement("DxeServicesTableLib");
446 vLibClassDefDxeDriver.addElement("HiiLib");
447 vLibClassDefDxeDriver.addElement("HobLib");
448 vLibClassDefDxeDriver.addElement("IoLib");
449 vLibClassDefDxeDriver.addElement("MemoryAllocationLib");
450 vLibClassDefDxeDriver.addElement("PcdLib");
451 vLibClassDefDxeDriver.addElement("ReportStatusCodeLib");
452 vLibClassDefDxeDriver.addElement("SmbusLib");
453 vLibClassDefDxeDriver.addElement("UefiBootServicesTableLib");
454 vLibClassDefDxeDriver.addElement("UefiDecompressLib");
455 vLibClassDefDxeDriver.addElement("UefiRuntimeServicesTableLib");
456 }
457
458 private void initLibClassDefDxeSmmDriver() {
459 vLibClassDefDxeSmmDriver.removeAllElements();
460 vLibClassDefDxeSmmDriver.addElement("DxeSmmDriverEntryPoint");
461 }
462
463 private void initLibClassDefUefiDriver() {
464 vLibClassDefUefiDriver.removeAllElements();
465 vLibClassDefUefiDriver.addElement("BaseMemoryLib");
466 vLibClassDefUefiDriver.addElement("DebugLib");
467 vLibClassDefUefiDriver.addElement("DevicePathLib");
468 vLibClassDefUefiDriver.addElement("UefiDriverEntryPoint");
469 vLibClassDefUefiDriver.addElement("UefiDriverModelLib");
470 vLibClassDefUefiDriver.addElement("UefiLib");
471 }
472
473 private void initSourceFilesToolChainFamily() {
474 vSourceFilesToolChainFamily.removeAllElements();
475 vSourceFilesToolChainFamily.addElement("MSFT");
476 vSourceFilesToolChainFamily.addElement("INTC");
477 vSourceFilesToolChainFamily.addElement("GCC");
478 }
479
480 private void initSourceFilesFileType() {
481 vSourceFilesFileType.removeAllElements();
482 vSourceFilesFileType.addElement("CCODE");
483 vSourceFilesFileType.addElement("CHEADER");
484 vSourceFilesFileType.addElement("ASMHEADER");
485 vSourceFilesFileType.addElement("ASM");
486 vSourceFilesFileType.addElement("UNI");
487 vSourceFilesFileType.addElement("TXT");
488 vSourceFilesFileType.addElement("DXS");
489 vSourceFilesFileType.addElement("BMP");
490 vSourceFilesFileType.addElement("VFR");
491 vSourceFilesFileType.addElement("BINARY");
492 vSourceFilesFileType.addElement("FV");
493 vSourceFilesFileType.addElement("FFS");
494 vSourceFilesFileType.addElement("EFI");
495 }
496
497 private void initToolCode() {
498 vToolCode.removeAllElements();
499 vToolCode.addElement(DataType.EMPTY_SELECT_ITEM);
500 vToolCode.addElement("CC");
501 vToolCode.addElement("DLINK");
502 vToolCode.addElement("SLINK");
503 vToolCode.addElement("PP");
504 vToolCode.addElement("ASM");
505 vToolCode.addElement("ASMLINK");
506 vToolCode.addElement("ASL");
507 }
508
509 private void initPackageUsage() {
510 vPackageUsage.removeAllElements();
511 vPackageUsage.addElement("ALWAYS_CONSUMED");
512 vPackageUsage.addElement("ALWAYS_PRODUCED");
513 vPackageUsage.addElement("DEFAULT");
514 }
515
516 private void initProtocolUsage() {
517 vProtocolUsage.removeAllElements();
518 vProtocolUsage.addElement("ALWAYS_CONSUMED");
519 vProtocolUsage.addElement("SOMETIMES_CONSUMED");
520 vProtocolUsage.addElement("ALWAYS_PRODUCED");
521 vProtocolUsage.addElement("SOMETIMES_PRODUCED");
522 vProtocolUsage.addElement("TO_START");
523 vProtocolUsage.addElement("BY_START");
524 vProtocolUsage.addElement("PRIVATE");
525 }
526
527 private void initProtocolType() {
528 vProtocolType.removeAllElements();
529 vProtocolType.addElement("Protocol");
530 vProtocolType.addElement("Protocol Notify");
531 }
532
533 private void initEventType() {
534 vEventType.removeAllElements();
535 vEventType.addElement("CreateEvents");
536 vEventType.addElement("SignalEvents");
537 }
538
539 private void initEventUsage() {
540 vEventUsage.removeAllElements();
541 vEventUsage.addElement("ALWAYS_CONSUMED");
542 vEventUsage.addElement("SOMETIMES_CONSUMED");
543 vEventUsage.addElement("ALWAYS_PRODUCED");
544 vEventUsage.addElement("SOMETIMES_PRODUCED");
545 vEventUsage.addElement("PRIVATE");
546 }
547
548 private void initEventGroup() {
549 vEventGroup.removeAllElements();
550 vEventGroup.addElement("EVENT_GROUP_GUID");
551 vEventGroup.addElement("EVENT_TYPE_PERIODIC_TIMER");
552 vEventGroup.addElement("EVENT_TYPE_RELATIVE_TIMER");
553 }
554
555 private void initHobType() {
556 vHobType.removeAllElements();
557 vHobType.addElement("PHIT");
558 vHobType.addElement("MEMORY_ALLOCATION");
559 vHobType.addElement("RESOURCE_DESCRIPTOR");
560 vHobType.addElement("GUID_EXTENSION");
561 vHobType.addElement("FIRMWARE_VOLUME");
562 vHobType.addElement("CPU");
563 vHobType.addElement("POOL");
564 vHobType.addElement("CAPSULE_VOLUME");
565 }
566
567 private void initHobUsage() {
568 vHobUsage.removeAllElements();
569 vHobUsage.addElement("ALWAYS_CONSUMED");
570 vHobUsage.addElement("SOMETIMES_CONSUMED");
571 vHobUsage.addElement("ALWAYS_PRODUCED");
572 vHobUsage.addElement("SOMETIMES_PRODUCED");
573 vHobUsage.addElement("PRIVATE");
574 }
575
576 private void initPpiType() {
577 vPpiType.removeAllElements();
578 vPpiType.addElement("Ppi");
579 vPpiType.addElement("Ppi Notify");
580 }
581
582 private void initPpiUsage() {
583 vPpiUsage.removeAllElements();
584 vPpiUsage.addElement("ALWAYS_CONSUMED");
585 vPpiUsage.addElement("SOMETIMES_CONSUMED");
586 vPpiUsage.addElement("ALWAYS_PRODUCED");
587 vPpiUsage.addElement("SOMETIMES_PRODUCED");
588 vPpiUsage.addElement("PRIVATE");
589 }
590
591 private void initPpiNotifyUsage() {
592 vPpiNotifyUsage.removeAllElements();
593 vPpiNotifyUsage.addElement("SOMETIMES_CONSUMED");
594 }
595
596 private void initProtocolNotifyUsage() {
597 vProtocolNotifyUsage.addElement("SOMETIMES_CONSUMED");
598 }
599
600 private void initVariableUsage() {
601 vVariableUsage.removeAllElements();
602 vVariableUsage.addElement("ALWAYS_CONSUMED");
603 vVariableUsage.addElement("SOMETIMES_CONSUMED");
604 vVariableUsage.addElement("ALWAYS_PRODUCED");
605 vVariableUsage.addElement("SOMETIMES_PRODUCED");
606 vVariableUsage.addElement("PRIVATE");
607 }
608
609 private void initBootModeNames() {
610 vBootModeNames.removeAllElements();
611 vBootModeNames.addElement("FULL");
612 vBootModeNames.addElement("MINIMAL");
613 vBootModeNames.addElement("NO_CHANGE");
614 vBootModeNames.addElement("DIAGNOSTICS");
615 vBootModeNames.addElement("DEFAULT");
616 vBootModeNames.addElement("S2_RESUME");
617 vBootModeNames.addElement("S3_RESUME");
618 vBootModeNames.addElement("S4_RESUME");
619 vBootModeNames.addElement("S5_RESUME");
620 vBootModeNames.addElement("FLASH_UPDATE");
621 vBootModeNames.addElement("RECOVERY");
622 }
623
624 private void initBootModeUsage() {
625 vBootModeUsage.removeAllElements();
626 vBootModeUsage.addElement("ALWAYS_CONSUMED");
627 vBootModeUsage.addElement("SOMETIMES_CONSUMED");
628 vBootModeUsage.addElement("ALWAYS_PRODUCED");
629 vBootModeUsage.addElement("SOMETIMES_PRODUCED");
630 }
631
632 private void initSystemTableUsage() {
633 vSystemTableUsage.removeAllElements();
634 vSystemTableUsage.addElement("ALWAYS_CONSUMED");
635 vSystemTableUsage.addElement("SOMETIMES_CONSUMED");
636 vSystemTableUsage.addElement("ALWAYS_PRODUCED");
637 vSystemTableUsage.addElement("SOMETIMES_PRODUCED");
638 vSystemTableUsage.addElement("PRIVATE");
639 }
640
641 private void initDataHubUsage() {
642 vDataHubUsage.removeAllElements();
643 vDataHubUsage.addElement("ALWAYS_CONSUMED");
644 vDataHubUsage.addElement("SOMETIMES_CONSUMED");
645 vDataHubUsage.addElement("ALWAYS_PRODUCED");
646 vDataHubUsage.addElement("SOMETIMES_PRODUCED");
647 vDataHubUsage.addElement("PRIVATE");
648 }
649
650 private void initHiiPackages() {
651 vHiiPackageUsage.removeAllElements();
652 vHiiPackageUsage.addElement("ALWAYS_PRODUCED");
653 vHiiPackageUsage.addElement("SOMETIMES_PRODUCED");
654 vHiiPackageUsage.addElement("PRIVATE");
655 }
656
657 private void initGuidUsage() {
658 vGuidUsage.removeAllElements();
659 vGuidUsage.addElement("ALWAYS_CONSUMED");
660 vGuidUsage.addElement("SOMETIMES_CONSUMED");
661 vGuidUsage.addElement("ALWAYS_PRODUCED");
662 vGuidUsage.addElement("SOMETIMES_PRODUCED");
663 vGuidUsage.addElement("DEFAULT");
664 vGuidUsage.addElement("PRIVATE");
665 }
666
667 private void initExternTypes() {
668 vExternTypes.removeAllElements();
669
670 vExternTypes.addElement(EnumerationData.EXTERNS_PCD_IS_DRIVER);
671
672 vExternTypes.addElement(EnumerationData.EXTERNS_SPECIFICATION);
673
674 vExternTypes.addElement(EnumerationData.EXTERNS_MODULE_ENTRY_POINT);
675 vExternTypes.addElement(EnumerationData.EXTERNS_MODULE_UNLOAD_IMAGE);
676
677 vExternTypes.addElement(EnumerationData.EXTERNS_CONSTRUCTOR);
678 vExternTypes.addElement(EnumerationData.EXTERNS_DESTRUCTOR);
679
680 vExternTypes.addElement(EnumerationData.EXTERNS_DRIVER_BINDING);
681 vExternTypes.addElement(EnumerationData.EXTERNS_COMPONENT_NAME);
682 vExternTypes.addElement(EnumerationData.EXTERNS_DRIVER_CONFIG);
683 vExternTypes.addElement(EnumerationData.EXTERNS_DRIVER_DIAG);
684
685 vExternTypes.addElement(EnumerationData.EXTERNS_SET_VIRTUAL_ADDRESS_MAP_CALL_BACK);
686 vExternTypes.addElement(EnumerationData.EXTERNS_EXIT_BOOT_SERVICES_CALL_BACK);
687 }
688
689 private void initPcdDriverTypes() {
690 vPcdDriverTypes.removeAllElements();
691 vPcdDriverTypes.addElement(DataType.EMPTY_SELECT_ITEM);
692 vPcdDriverTypes.addElement("PEI_PCD_DRIVER");
693 vPcdDriverTypes.addElement("DXE_PCD_DRIVER");
694 }
695
696 private void initPcdItemTypes() {
697 vPcdItemTypes.removeAllElements();
698 vPcdItemTypes.addElement("FEATURE_FLAG");
699 vPcdItemTypes.addElement("FIXED_AT_BUILD");
700 vPcdItemTypes.addElement("PATCHABLE_IN_MODULE");
701 vPcdItemTypes.addElement("DYNAMIC");
702 vPcdItemTypes.addElement("DYNAMIC_EX");
703 }
704
705 public Vector<String> getvCompontentType() {
706 return vCompontentType;
707 }
708
709 public void setvCompontentType(Vector<String> componentType) {
710 vCompontentType = componentType;
711 }
712
713 public Vector<String> getVModuleType() {
714 return vModuleType;
715 }
716
717 public void setVModuleType(Vector<String> moduleType) {
718 vModuleType = moduleType;
719 }
720
721 public Vector<String> getVLibraryUsage() {
722 return vLibraryUsage;
723 }
724
725 public void setVLibClassDefUsage(Vector<String> libClassDefUsage) {
726 vLibraryUsage = libClassDefUsage;
727 }
728
729 public Vector<String> getVLibClassDef() {
730 return vLibClassDef;
731 }
732
733 public void setVLibClassDef(Vector<String> libClassDef) {
734 vLibClassDef = libClassDef;
735 }
736
737 public Vector<String> getVCompontentType() {
738 return vCompontentType;
739 }
740
741 public void setVCompontentType(Vector<String> compontentType) {
742 vCompontentType = compontentType;
743 }
744
745 public Vector<String> getVLibClassDefBase() {
746 return vLibClassDefBase;
747 }
748
749 public void setVLibClassDefBase(Vector<String> libClassDefBase) {
750 vLibClassDefBase = libClassDefBase;
751 }
752
753 public Vector<String> getVLibClassDefDxeCore() {
754 return vLibClassDefDxeCore;
755 }
756
757 public void setVLibClassDefDxeCore(Vector<String> libClassDefDxeCore) {
758 vLibClassDefDxeCore = libClassDefDxeCore;
759 }
760
761 public Vector<String> getVLibClassDefDxeDriver() {
762 return vLibClassDefDxeDriver;
763 }
764
765 public void setVLibClassDefDxeDriver(Vector<String> libClassDefDxeDriver) {
766 vLibClassDefDxeDriver = libClassDefDxeDriver;
767 }
768
769 public Vector<String> getVLibClassDefDxeSmmDriver() {
770 return vLibClassDefDxeSmmDriver;
771 }
772
773 public void setVLibClassDefDxeSmmDriver(Vector<String> libClassDefDxeSmmDriver) {
774 vLibClassDefDxeSmmDriver = libClassDefDxeSmmDriver;
775 }
776
777 public Vector<String> getVLibClassDefPei() {
778 return vLibClassDefPei;
779 }
780
781 public void setVLibClassDefPei(Vector<String> libClassDefPei) {
782 vLibClassDefPei = libClassDefPei;
783 }
784
785 public Vector<String> getVLibClassDefPeim() {
786 return vLibClassDefPeim;
787 }
788
789 public void setVLibClassDefPeim(Vector<String> libClassDefPeim) {
790 vLibClassDefPeim = libClassDefPeim;
791 }
792
793 public Vector<String> getVLibClassDefUefiDriver() {
794 return vLibClassDefUefiDriver;
795 }
796
797 public void setVLibClassDefUefiDriver(Vector<String> libClassDefUefiDriver) {
798 vLibClassDefUefiDriver = libClassDefUefiDriver;
799 }
800
801 public Vector<String> getVSourceFilesFileType() {
802 return vSourceFilesFileType;
803 }
804
805 public void setVSourceFilesFileType(Vector<String> sourceFilesFileType) {
806 vSourceFilesFileType = sourceFilesFileType;
807 }
808
809 public Vector<String> getVSourceFilesToolChainFamily() {
810 return vSourceFilesToolChainFamily;
811 }
812
813 public void setVSourceFilesToolChainFamily(Vector<String> sourceFilesToolChainFamily) {
814 vSourceFilesToolChainFamily = sourceFilesToolChainFamily;
815 }
816
817 public void setVLibraryUsage(Vector<String> libraryUsage) {
818 vLibraryUsage = libraryUsage;
819 }
820
821 public Vector<String> getVProtocolNotifyUsage() {
822 return vProtocolNotifyUsage;
823 }
824
825 public void setVProtocolNotifyUsage(Vector<String> protocolNotifyUsage) {
826 vProtocolNotifyUsage = protocolNotifyUsage;
827 }
828
829 public Vector<String> getVProtocolUsage() {
830 return vProtocolUsage;
831 }
832
833 public void setVProtocolUsage(Vector<String> protocolUsage) {
834 vProtocolUsage = protocolUsage;
835 }
836
837 public Vector<String> getVSupportedArchitectures() {
838 return vSupportedArchitectures;
839 }
840
841 public void setVSupportedArchitectures(Vector<String> supportedArchitectures) {
842 vSupportedArchitectures = supportedArchitectures;
843 }
844
845 public Vector<String> getVProtocolType() {
846 return vProtocolType;
847 }
848
849 public void setVProtocolType(Vector<String> protocolType) {
850 vProtocolType = protocolType;
851 }
852
853 public Vector<String> getVEventGroup() {
854 return vEventGroup;
855 }
856
857 public void setVEventGroup(Vector<String> eventGroup) {
858 vEventGroup = eventGroup;
859 }
860
861 public Vector<String> getVEventType() {
862 return vEventType;
863 }
864
865 public void setVEventType(Vector<String> eventType) {
866 vEventType = eventType;
867 }
868
869 public Vector<String> getVEventUsage() {
870 return vEventUsage;
871 }
872
873 public void setVEventUsage(Vector<String> eventUsage) {
874 vEventUsage = eventUsage;
875 }
876
877 public Vector<String> getVEnabled() {
878 return vEnabled;
879 }
880
881 public void setVEnabled(Vector<String> enabled) {
882 vEnabled = enabled;
883 }
884
885 public Vector<String> getVHobType() {
886 return vHobType;
887 }
888
889 public void setVHobType(Vector<String> hobType) {
890 vHobType = hobType;
891 }
892
893 public Vector<String> getVHobUsage() {
894 return vHobUsage;
895 }
896
897 public void setVHobUsage(Vector<String> hobUsage) {
898 vHobUsage = hobUsage;
899 }
900
901 public Vector<String> getVPpiNotifyUsage() {
902 return vPpiNotifyUsage;
903 }
904
905 public void setVPpiNotifyUsage(Vector<String> ppiNotifyUsage) {
906 vPpiNotifyUsage = ppiNotifyUsage;
907 }
908
909 public Vector<String> getVPpiType() {
910 return vPpiType;
911 }
912
913 public void setVPpiType(Vector<String> ppiType) {
914 vPpiType = ppiType;
915 }
916
917 public Vector<String> getVPpiUsage() {
918 return vPpiUsage;
919 }
920
921 public void setVPpiUsage(Vector<String> ppiUsage) {
922 vPpiUsage = ppiUsage;
923 }
924
925 public Vector<String> getVVariableUsage() {
926 return vVariableUsage;
927 }
928
929 public void setVVariableUsage(Vector<String> variableUsage) {
930 vVariableUsage = variableUsage;
931 }
932
933 public Vector<String> getVBootModeNames() {
934 return vBootModeNames;
935 }
936
937 public void setVBootModeNames(Vector<String> bootModeNames) {
938 vBootModeNames = bootModeNames;
939 }
940
941 public Vector<String> getVBootModeUsage() {
942 return vBootModeUsage;
943 }
944
945 public void setVBootModeUsage(Vector<String> bootModeUsage) {
946 vBootModeUsage = bootModeUsage;
947 }
948
949 public Vector<String> getVSystemTableUsage() {
950 return vSystemTableUsage;
951 }
952
953 public void setVSystemTableUsage(Vector<String> systemTableUsage) {
954 vSystemTableUsage = systemTableUsage;
955 }
956
957 public Vector<String> getVDataHubUsage() {
958 return vDataHubUsage;
959 }
960
961 public void setVDataHubUsage(Vector<String> dataHubUsage) {
962 vDataHubUsage = dataHubUsage;
963 }
964
965 public Vector<String> getVGuidUsage() {
966 return vGuidUsage;
967 }
968
969 public void setVGuidUsage(Vector<String> guidUsage) {
970 vGuidUsage = guidUsage;
971 }
972
973 public Vector<String> getVHiiPackageUsage() {
974 return vHiiPackageUsage;
975 }
976
977 public void setVHiiPackageUsage(Vector<String> hiiPackageUsage) {
978 vHiiPackageUsage = hiiPackageUsage;
979 }
980
981 public Vector<String> getVPcdItemTypes() {
982 return vPcdItemTypes;
983 }
984
985 public void setVPcdItemTypes(Vector<String> pcdItemTypes) {
986 vPcdItemTypes = pcdItemTypes;
987 }
988
989 public Vector<String> getVExternTypes() {
990 return vExternTypes;
991 }
992
993 public void setVExternTypes(Vector<String> externTypes) {
994 vExternTypes = externTypes;
995 }
996
997 public Vector<String> getVPcdDriverTypes() {
998 return vPcdDriverTypes;
999 }
1000
1001 public void setVPcdDriverTypes(Vector<String> pcdDriverTypes) {
1002 vPcdDriverTypes = pcdDriverTypes;
1003 }
1004
1005 public Vector<String> getVBoolean() {
1006 return vBoolean;
1007 }
1008
1009 public void setVBoolean(Vector<String> boolean1) {
1010 vBoolean = boolean1;
1011 }
1012
1013 public Vector<String> getVFrameworkModuleTypes() {
1014 return vFrameworkModuleTypes;
1015 }
1016
1017 public void setVFrameworkModuleTypes(Vector<String> frameworkModuleTypes) {
1018 vFrameworkModuleTypes = frameworkModuleTypes;
1019 }
1020
1021 public Vector<String> getVPackageUsage() {
1022 return vPackageUsage;
1023 }
1024
1025 public void setVPackageUsage(Vector<String> packageUsage) {
1026 vPackageUsage = packageUsage;
1027 }
1028
1029 public Vector<String> getVToolCode() {
1030 return vToolCode;
1031 }
1032
1033 public void setVToolCode(Vector<String> toolCode) {
1034 vToolCode = toolCode;
1035 }
1036 }