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