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