1. Fix EDKT280 The types of ToolCode for <SourceFiles>.<Filename> should not be ...
[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("Build_CCode");
525 vToolCode.addElement("Build_AUTOGEN");
526 vToolCode.addElement("Build_DPX");
527 vToolCode.addElement("Build_ASM");
528 vToolCode.addElement("Build_Assembly");
529 vToolCode.addElement("Build_Gcc_Assembly");
530 vToolCode.addElement("Build_IPF_Assembly_Code");
531 vToolCode.addElement("Build_IPF_PP_Code");
532 vToolCode.addElement("Build_Library");
533 vToolCode.addElement("Build_UNI");
534 vToolCode.addElement("Build_Unicode_Database");
535 vToolCode.addElement("Build_VFR");
536 vToolCode.addElement("Build_DUMMY");
537 }
538
539 private void initPackageUsage() {
540 vPackageUsage.removeAllElements();
541 vPackageUsage.addElement("ALWAYS_CONSUMED");
542 vPackageUsage.addElement("ALWAYS_PRODUCED");
543 }
544
545 private void initProtocolUsage() {
546 vProtocolUsage.removeAllElements();
547 vProtocolUsage.addElement("ALWAYS_CONSUMED");
548 vProtocolUsage.addElement("SOMETIMES_CONSUMED");
549 vProtocolUsage.addElement("ALWAYS_PRODUCED");
550 vProtocolUsage.addElement("SOMETIMES_PRODUCED");
551 vProtocolUsage.addElement("TO_START");
552 vProtocolUsage.addElement("BY_START");
553 vProtocolUsage.addElement("PRIVATE");
554 }
555
556 private void initProtocolType() {
557 vProtocolType.removeAllElements();
558 vProtocolType.addElement("Protocol");
559 vProtocolType.addElement("Protocol Notify");
560 }
561
562 private void initEventType() {
563 vEventType.removeAllElements();
564 vEventType.addElement("CreateEvents");
565 vEventType.addElement("SignalEvents");
566 }
567
568 private void initEventUsage() {
569 vEventUsage.removeAllElements();
570 vEventUsage.addElement("ALWAYS_CONSUMED");
571 vEventUsage.addElement("SOMETIMES_CONSUMED");
572 vEventUsage.addElement("ALWAYS_PRODUCED");
573 vEventUsage.addElement("SOMETIMES_PRODUCED");
574 vEventUsage.addElement("PRIVATE");
575 }
576
577 private void initEventGroup() {
578 vEventGroup.removeAllElements();
579 vEventGroup.addElement("EVENT_GROUP_GUID");
580 vEventGroup.addElement("EVENT_TYPE_PERIODIC_TIMER");
581 vEventGroup.addElement("EVENT_TYPE_RELATIVE_TIMER");
582 }
583
584 private void initHobType() {
585 vHobType.removeAllElements();
586 vHobType.addElement("PHIT");
587 vHobType.addElement("MEMORY_ALLOCATION");
588 vHobType.addElement("RESOURCE_DESCRIPTOR");
589 vHobType.addElement("GUID_EXTENSION");
590 vHobType.addElement("FIRMWARE_VOLUME");
591 vHobType.addElement("CPU");
592 vHobType.addElement("POOL");
593 vHobType.addElement("CAPSULE_VOLUME");
594 }
595
596 private void initHobUsage() {
597 vHobUsage.removeAllElements();
598 vHobUsage.addElement("ALWAYS_CONSUMED");
599 vHobUsage.addElement("SOMETIMES_CONSUMED");
600 vHobUsage.addElement("ALWAYS_PRODUCED");
601 vHobUsage.addElement("SOMETIMES_PRODUCED");
602 vHobUsage.addElement("PRIVATE");
603 }
604
605 private void initPpiType() {
606 vPpiType.removeAllElements();
607 vPpiType.addElement("Ppi");
608 vPpiType.addElement("Ppi Notify");
609 }
610
611 private void initPpiUsage() {
612 vPpiUsage.removeAllElements();
613 vPpiUsage.addElement("ALWAYS_CONSUMED");
614 vPpiUsage.addElement("SOMETIMES_CONSUMED");
615 vPpiUsage.addElement("ALWAYS_PRODUCED");
616 vPpiUsage.addElement("SOMETIMES_PRODUCED");
617 vPpiUsage.addElement("PRIVATE");
618 }
619
620 private void initPpiNotifyUsage() {
621 vPpiNotifyUsage.removeAllElements();
622 vPpiNotifyUsage.addElement("SOMETIMES_CONSUMED");
623 }
624
625 private void initProtocolNotifyUsage() {
626 vProtocolNotifyUsage.addElement("SOMETIMES_CONSUMED");
627 }
628
629 private void initVariableUsage() {
630 vVariableUsage.removeAllElements();
631 vVariableUsage.addElement("ALWAYS_CONSUMED");
632 vVariableUsage.addElement("SOMETIMES_CONSUMED");
633 vVariableUsage.addElement("ALWAYS_PRODUCED");
634 vVariableUsage.addElement("SOMETIMES_PRODUCED");
635 vVariableUsage.addElement("PRIVATE");
636 }
637
638 private void initBootModeNames() {
639 vBootModeNames.removeAllElements();
640 vBootModeNames.addElement("FULL");
641 vBootModeNames.addElement("MINIMAL");
642 vBootModeNames.addElement("NO_CHANGE");
643 vBootModeNames.addElement("DIAGNOSTICS");
644 vBootModeNames.addElement("S2_RESUME");
645 vBootModeNames.addElement("S3_RESUME");
646 vBootModeNames.addElement("S4_RESUME");
647 vBootModeNames.addElement("S5_RESUME");
648 vBootModeNames.addElement("FLASH_UPDATE");
649 vBootModeNames.addElement("RECOVERY");
650 }
651
652 private void initBootModeUsage() {
653 vBootModeUsage.removeAllElements();
654 vBootModeUsage.addElement("ALWAYS_CONSUMED");
655 vBootModeUsage.addElement("SOMETIMES_CONSUMED");
656 vBootModeUsage.addElement("ALWAYS_PRODUCED");
657 vBootModeUsage.addElement("SOMETIMES_PRODUCED");
658 }
659
660 private void initSystemTableUsage() {
661 vSystemTableUsage.removeAllElements();
662 vSystemTableUsage.addElement("ALWAYS_CONSUMED");
663 vSystemTableUsage.addElement("SOMETIMES_CONSUMED");
664 vSystemTableUsage.addElement("ALWAYS_PRODUCED");
665 vSystemTableUsage.addElement("SOMETIMES_PRODUCED");
666 vSystemTableUsage.addElement("PRIVATE");
667 }
668
669 private void initDataHubUsage() {
670 vDataHubUsage.removeAllElements();
671 vDataHubUsage.addElement("ALWAYS_CONSUMED");
672 vDataHubUsage.addElement("SOMETIMES_CONSUMED");
673 vDataHubUsage.addElement("ALWAYS_PRODUCED");
674 vDataHubUsage.addElement("SOMETIMES_PRODUCED");
675 vDataHubUsage.addElement("PRIVATE");
676 }
677
678 private void initHiiPackages() {
679 vHiiPackageUsage.removeAllElements();
680 vHiiPackageUsage.addElement("ALWAYS_PRODUCED");
681 vHiiPackageUsage.addElement("SOMETIMES_PRODUCED");
682 vHiiPackageUsage.addElement("PRIVATE");
683 }
684
685 private void initGuidUsage() {
686 vGuidUsage.removeAllElements();
687 vGuidUsage.addElement("ALWAYS_CONSUMED");
688 vGuidUsage.addElement("SOMETIMES_CONSUMED");
689 vGuidUsage.addElement("ALWAYS_PRODUCED");
690 vGuidUsage.addElement("SOMETIMES_PRODUCED");
691 vGuidUsage.addElement("PRIVATE");
692 }
693
694 private void initExternTypes() {
695 vExternTypes.removeAllElements();
696
697 vExternTypes.addElement(EnumerationData.EXTERNS_SPECIFICATION);
698 vExternTypes.addElement(EnumerationData.EXTERNS_IMAGE);
699 vExternTypes.addElement(EnumerationData.EXTERNS_DRIVER);
700 vExternTypes.addElement(EnumerationData.EXTERNS_LIBRARY);
701 vExternTypes.addElement(EnumerationData.EXTERNS_CALL_BACK);
702 }
703
704 private void initPcdDriverTypes() {
705 vPcdDriverTypes.removeAllElements();
706 vPcdDriverTypes.addElement("PEI_PCD_DRIVER");
707 vPcdDriverTypes.addElement("DXE_PCD_DRIVER");
708 }
709
710 private void initPcdItemTypes() {
711 vPcdItemTypes.removeAllElements();
712 vPcdItemTypes.addElement("FEATURE_FLAG");
713 vPcdItemTypes.addElement("FIXED_AT_BUILD");
714 vPcdItemTypes.addElement("PATCHABLE_IN_MODULE");
715 vPcdItemTypes.addElement("DYNAMIC");
716 vPcdItemTypes.addElement("DYNAMIC_EX");
717 }
718
719 private void initPcdUsage() {
720 vPcdUsage.removeAllElements();
721 vPcdUsage.addElement("ALWAYS_CONSUMED");
722 vPcdUsage.addElement("SOMETIMES_CONSUMED");
723 vPcdUsage.addElement("ALWAYS_PRODUCED");
724 vPcdUsage.addElement("SOMETIMES_PRODUCED");
725 }
726
727 public Vector<String> getvCompontentType() {
728 return vCompontentType;
729 }
730
731 public void setvCompontentType(Vector<String> componentType) {
732 vCompontentType = componentType;
733 }
734
735 public Vector<String> getVModuleType() {
736 return vModuleType;
737 }
738
739 public void setVModuleType(Vector<String> moduleType) {
740 vModuleType = moduleType;
741 }
742
743 public Vector<String> getVLibraryUsage() {
744 return vLibraryUsage;
745 }
746
747 public void setVLibClassDefUsage(Vector<String> libClassDefUsage) {
748 vLibraryUsage = libClassDefUsage;
749 }
750
751 public Vector<String> getVLibClassDef() {
752 return vLibClassDef;
753 }
754
755 public void setVLibClassDef(Vector<String> libClassDef) {
756 vLibClassDef = libClassDef;
757 }
758
759 public Vector<String> getVCompontentType() {
760 return vCompontentType;
761 }
762
763 public void setVCompontentType(Vector<String> compontentType) {
764 vCompontentType = compontentType;
765 }
766
767 public Vector<String> getVLibClassDefBase() {
768 return vLibClassDefBase;
769 }
770
771 public void setVLibClassDefBase(Vector<String> libClassDefBase) {
772 vLibClassDefBase = libClassDefBase;
773 }
774
775 public Vector<String> getVLibClassDefDxeCore() {
776 return vLibClassDefDxeCore;
777 }
778
779 public void setVLibClassDefDxeCore(Vector<String> libClassDefDxeCore) {
780 vLibClassDefDxeCore = libClassDefDxeCore;
781 }
782
783 public Vector<String> getVLibClassDefDxeDriver() {
784 return vLibClassDefDxeDriver;
785 }
786
787 public void setVLibClassDefDxeDriver(Vector<String> libClassDefDxeDriver) {
788 vLibClassDefDxeDriver = libClassDefDxeDriver;
789 }
790
791 public Vector<String> getVLibClassDefDxeSmmDriver() {
792 return vLibClassDefDxeSmmDriver;
793 }
794
795 public void setVLibClassDefDxeSmmDriver(Vector<String> libClassDefDxeSmmDriver) {
796 vLibClassDefDxeSmmDriver = libClassDefDxeSmmDriver;
797 }
798
799 public Vector<String> getVLibClassDefPei() {
800 return vLibClassDefPei;
801 }
802
803 public void setVLibClassDefPei(Vector<String> libClassDefPei) {
804 vLibClassDefPei = libClassDefPei;
805 }
806
807 public Vector<String> getVLibClassDefPeim() {
808 return vLibClassDefPeim;
809 }
810
811 public void setVLibClassDefPeim(Vector<String> libClassDefPeim) {
812 vLibClassDefPeim = libClassDefPeim;
813 }
814
815 public Vector<String> getVLibClassDefUefiDriver() {
816 return vLibClassDefUefiDriver;
817 }
818
819 public void setVLibClassDefUefiDriver(Vector<String> libClassDefUefiDriver) {
820 vLibClassDefUefiDriver = libClassDefUefiDriver;
821 }
822
823 public Vector<String> getVSourceFilesFileType() {
824 return vSourceFilesFileType;
825 }
826
827 public void setVSourceFilesFileType(Vector<String> sourceFilesFileType) {
828 vSourceFilesFileType = sourceFilesFileType;
829 }
830
831 public Vector<String> getVSourceFilesToolChainFamily() {
832 return vSourceFilesToolChainFamily;
833 }
834
835 public void setVSourceFilesToolChainFamily(Vector<String> sourceFilesToolChainFamily) {
836 vSourceFilesToolChainFamily = sourceFilesToolChainFamily;
837 }
838
839 public void setVLibraryUsage(Vector<String> libraryUsage) {
840 vLibraryUsage = libraryUsage;
841 }
842
843 public Vector<String> getVProtocolNotifyUsage() {
844 return vProtocolNotifyUsage;
845 }
846
847 public void setVProtocolNotifyUsage(Vector<String> protocolNotifyUsage) {
848 vProtocolNotifyUsage = protocolNotifyUsage;
849 }
850
851 public Vector<String> getVProtocolUsage() {
852 return vProtocolUsage;
853 }
854
855 public void setVProtocolUsage(Vector<String> protocolUsage) {
856 vProtocolUsage = protocolUsage;
857 }
858
859 public Vector<String> getVSupportedArchitectures() {
860 return vSupportedArchitectures;
861 }
862
863 public void setVSupportedArchitectures(Vector<String> supportedArchitectures) {
864 vSupportedArchitectures = supportedArchitectures;
865 }
866
867 public Vector<String> getVProtocolType() {
868 return vProtocolType;
869 }
870
871 public void setVProtocolType(Vector<String> protocolType) {
872 vProtocolType = protocolType;
873 }
874
875 public Vector<String> getVEventGroup() {
876 return vEventGroup;
877 }
878
879 public void setVEventGroup(Vector<String> eventGroup) {
880 vEventGroup = eventGroup;
881 }
882
883 public Vector<String> getVEventType() {
884 return vEventType;
885 }
886
887 public void setVEventType(Vector<String> eventType) {
888 vEventType = eventType;
889 }
890
891 public Vector<String> getVEventUsage() {
892 return vEventUsage;
893 }
894
895 public void setVEventUsage(Vector<String> eventUsage) {
896 vEventUsage = eventUsage;
897 }
898
899 public Vector<String> getVEnabled() {
900 return vEnabled;
901 }
902
903 public void setVEnabled(Vector<String> enabled) {
904 vEnabled = enabled;
905 }
906
907 public Vector<String> getVHobType() {
908 return vHobType;
909 }
910
911 public void setVHobType(Vector<String> hobType) {
912 vHobType = hobType;
913 }
914
915 public Vector<String> getVHobUsage() {
916 return vHobUsage;
917 }
918
919 public void setVHobUsage(Vector<String> hobUsage) {
920 vHobUsage = hobUsage;
921 }
922
923 public Vector<String> getVPpiNotifyUsage() {
924 return vPpiNotifyUsage;
925 }
926
927 public void setVPpiNotifyUsage(Vector<String> ppiNotifyUsage) {
928 vPpiNotifyUsage = ppiNotifyUsage;
929 }
930
931 public Vector<String> getVPpiType() {
932 return vPpiType;
933 }
934
935 public void setVPpiType(Vector<String> ppiType) {
936 vPpiType = ppiType;
937 }
938
939 public Vector<String> getVPpiUsage() {
940 return vPpiUsage;
941 }
942
943 public void setVPpiUsage(Vector<String> ppiUsage) {
944 vPpiUsage = ppiUsage;
945 }
946
947 public Vector<String> getVVariableUsage() {
948 return vVariableUsage;
949 }
950
951 public void setVVariableUsage(Vector<String> variableUsage) {
952 vVariableUsage = variableUsage;
953 }
954
955 public Vector<String> getVBootModeNames() {
956 return vBootModeNames;
957 }
958
959 public void setVBootModeNames(Vector<String> bootModeNames) {
960 vBootModeNames = bootModeNames;
961 }
962
963 public Vector<String> getVBootModeUsage() {
964 return vBootModeUsage;
965 }
966
967 public void setVBootModeUsage(Vector<String> bootModeUsage) {
968 vBootModeUsage = bootModeUsage;
969 }
970
971 public Vector<String> getVSystemTableUsage() {
972 return vSystemTableUsage;
973 }
974
975 public void setVSystemTableUsage(Vector<String> systemTableUsage) {
976 vSystemTableUsage = systemTableUsage;
977 }
978
979 public Vector<String> getVDataHubUsage() {
980 return vDataHubUsage;
981 }
982
983 public void setVDataHubUsage(Vector<String> dataHubUsage) {
984 vDataHubUsage = dataHubUsage;
985 }
986
987 public Vector<String> getVGuidUsage() {
988 return vGuidUsage;
989 }
990
991 public void setVGuidUsage(Vector<String> guidUsage) {
992 vGuidUsage = guidUsage;
993 }
994
995 public Vector<String> getVHiiPackageUsage() {
996 return vHiiPackageUsage;
997 }
998
999 public void setVHiiPackageUsage(Vector<String> hiiPackageUsage) {
1000 vHiiPackageUsage = hiiPackageUsage;
1001 }
1002
1003 public Vector<String> getVPcdItemTypes() {
1004 return vPcdItemTypes;
1005 }
1006
1007 public void setVPcdItemTypes(Vector<String> pcdItemTypes) {
1008 vPcdItemTypes = pcdItemTypes;
1009 }
1010
1011 public Vector<String> getVExternTypes() {
1012 return vExternTypes;
1013 }
1014
1015 public void setVExternTypes(Vector<String> externTypes) {
1016 vExternTypes = externTypes;
1017 }
1018
1019 public Vector<String> getVPcdDriverTypes() {
1020 return vPcdDriverTypes;
1021 }
1022
1023 public void setVPcdDriverTypes(Vector<String> pcdDriverTypes) {
1024 vPcdDriverTypes = pcdDriverTypes;
1025 }
1026
1027 public Vector<String> getVBoolean() {
1028 return vBoolean;
1029 }
1030
1031 public void setVBoolean(Vector<String> boolean1) {
1032 vBoolean = boolean1;
1033 }
1034
1035 public Vector<String> getVFrameworkModuleTypes() {
1036 return vFrameworkModuleTypes;
1037 }
1038
1039 public void setVFrameworkModuleTypes(Vector<String> frameworkModuleTypes) {
1040 vFrameworkModuleTypes = frameworkModuleTypes;
1041 }
1042
1043 public Vector<String> getVPackageUsage() {
1044 return vPackageUsage;
1045 }
1046
1047 public void setVPackageUsage(Vector<String> packageUsage) {
1048 vPackageUsage = packageUsage;
1049 }
1050
1051 public Vector<String> getVToolCode() {
1052 return vToolCode;
1053 }
1054
1055 public void setVToolCode(Vector<String> toolCode) {
1056 vToolCode = toolCode;
1057 }
1058
1059 public Vector<String> getVPcdUsage() {
1060 return vPcdUsage;
1061 }
1062
1063 public void setVPcdUsage(Vector<String> pcdUsage) {
1064 vPcdUsage = pcdUsage;
1065 }
1066 }