- /**\r
- Get the PcdToken array from module's surface area document.\r
- The array should contains following data:\r
- <p>-------------------------------------------------------------------</p>\r
- <p>CName | ItemType | TokenspaceName | DefaultValue | Usage | HelpText</p>\r
- <p>-------------------------------------------------------------------</p>\r
- <p>Note: Until new schema applying, now we can only get CName, ItemType,</p>\r
- \r
- @return 2-array table contains all information of PCD token retrieved from MSA.\r
- **/\r
- public static Object[][] getModulePCDTokenArray () {\r
- int index;\r
- Object[][] result;\r
- PCDs.PcdData[] pcds;\r
- String[] xPath = new String[] {"/PcdData"};\r
- XmlObject[] returns = get ("PCDs", xPath);\r
-\r
- if ((returns == null) || (returns.length == 0)) {\r
- return null;\r
- }\r
-\r
- pcds = (PCDs.PcdData[]) returns;\r
- result = new Object[pcds.length][6];\r
- for (index = 0; index < pcds.length; index ++) {\r
- //\r
- // Get CName\r
- //\r
- result [index][0] = pcds[index].getCName();\r
- //\r
- // Get ItemType: FEATURE_FLAG, FIXED_AT_BUILD, PATCHABLE_IN_MODLE, DYNAMIC, DYNAMIC_EX\r
- //\r
- if (pcds[index].getItemType() != null) {\r
- result [index][1] = pcds[index].getItemType().toString();\r
- } else {\r
- result [index][1] = null;\r
- }\r