-// public synchronized static Map<FpdModuleIdentification, XmlObject> getFpdModuleSaXmlObject(\r
-// String xmlObjectName) {\r
-// Set<FpdModuleIdentification> fpdModuleSASet = fpdModuleSA.keySet();\r
-// Iterator item = fpdModuleSASet.iterator();\r
-//\r
-// Map<FpdModuleIdentification, XmlObject> SAPcdBuildDef = new HashMap<FpdModuleIdentification, XmlObject>();\r
-// Map<String, XmlObject> SANode = new HashMap<String, XmlObject>();\r
-// FpdModuleIdentification moduleId;\r
-// while (item.hasNext()) {\r
-// moduleId = (FpdModuleIdentification) item.next();\r
-// SANode = fpdModuleSA.get(item.next());\r
-// SAPcdBuildDef.put(moduleId,\r
-// (PcdBuildDefinitionDocument.PcdBuildDefinition) SANode\r
-// .get(xmlObjectName));\r
-// }\r
-// return SAPcdBuildDef;\r
-// }\r
+ public synchronized static Map<FpdModuleIdentification, XmlObject>\r
+ getFpdModuleSaXmlObject(String xmlObjectName) {\r
+ Set<FpdModuleIdentification> fpdModuleSASet = fpdModuleSA.keySet();\r
+ Iterator item = fpdModuleSASet.iterator();\r
+\r
+\r
+ Map<FpdModuleIdentification, XmlObject> SAPcdBuildDef = new HashMap<FpdModuleIdentification, XmlObject>();\r
+ Map<String, XmlObject> SANode = new HashMap<String, XmlObject>();\r
+ FpdModuleIdentification moduleId;\r
+ while (item.hasNext()) {\r
+\r
+ moduleId = (FpdModuleIdentification) item.next();\r
+ SANode = fpdModuleSA.get(moduleId);\r
+ try{\r
+ if (SANode.get(xmlObjectName)!= null){\r
+ SAPcdBuildDef.put(moduleId,\r
+ (XmlObject) SANode.get(xmlObjectName));\r
+\r
+ }\r
+ } catch (Exception e){\r
+ EdkLog.log(EdkLog.EDK_INFO, e.getMessage());\r
+ }\r
+ }\r
+ return SAPcdBuildDef;\r
+ }\r
+\r
+ public synchronized static Map<FpdModuleIdentification,XmlObject> getFpdPcdBuildDefinitions() {\r
+ Map<FpdModuleIdentification,XmlObject> pcdBuildDef = getFpdModuleSaXmlObject ("PcdBuildDefinition");\r
+\r
+ return pcdBuildDef;\r
+ }\r