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