+ if (((ModuleSADocument.ModuleSA) result[i])\r
+ .getModuleSaBuildOptions() != null) {\r
+ ObjectMap.put("ModuleSaBuildOptions", moduleSA\r
+ .getModuleSaBuildOptions());\r
+ }\r
+\r
+ //\r
+ // Get Fpd SA Module attribute and create FpdMoudleIdentification.\r
+ //\r
+ arch = moduleSA.getSupArchList().toString();\r
+\r
+ // TBD\r
+ fvBinding = null;\r
+ saVersion = ((ModuleSADocument.ModuleSA) result[i])\r
+ .getModuleVersion();\r
+\r
+ saGuid = moduleSA.getModuleGuid();\r
+ pkgGuid = moduleSA.getPackageGuid();\r
+ pkgVersion = moduleSA.getPackageVersion();\r
+\r
+ //\r
+ // Create Module Identification which have class member of package\r
+ // identification.\r
+ //\r
+ PackageIdentification pkgId = new PackageIdentification(null,\r
+ pkgGuid, pkgVersion);\r
+ ModuleIdentification saId = new ModuleIdentification(null, saGuid,\r
+ saVersion);\r
+\r
+ saId.setPackage(pkgId);\r
+\r
+ //\r
+ // Create FpdModule Identification which have class member of module\r
+ // identification\r
+ //\r
+ if (arch != null) {\r
+ String[] archList = arch.split(" ");\r
+ for (int j = 0; j < archList.length; j++) {\r
+ FpdModuleIdentification fpdSaId = new FpdModuleIdentification(saId, archList[j]);\r
+ \r
+ if (fvBinding != null) {\r
+ fpdSaId.setFvBinding(fvBinding);\r
+ }\r
+ \r
+ //\r
+ // Put element to Map<FpdModuleIdentification, Map<String,\r
+ // Object>>.\r
+ //\r
+ fpdModuleMap.put(fpdSaId, ObjectMap);\r
+ }\r
+ }\r
+ }\r
+ return fpdModuleMap;\r
+ }\r
+\r
+ /**\r
+ * Retrieve valid image names\r
+ * \r
+ * @returns valid iamges name list if elements are found at the known xpath\r
+ * @returns empty list if nothing is there\r
+ */\r
+ public static String[] getFpdValidImageNames() {\r
+ String[] xPath = new String[] { "/Flash/FvImages/FvImage[@Type='ImageName']/FvImageNames" };\r
+\r
+ Object[] queryResult = get("PlatformSurfaceArea", xPath);\r
+ if (queryResult == null) {\r
+ return new String[0];\r