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