]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/PlatformIdentification.java
1. Fix EDKT457 Multiple FPD, MSA or SPD files in a directory is prohibited
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / PlatformIdentification.java
index 2fdbdd6d737c17e3cb87cd4591a1f5a9888c5de0..bc0b3d2bed5a73c7ea07c07b97f0047c2f754379 100644 (file)
@@ -40,4 +40,22 @@ public class PlatformIdentification extends Identification{
     public String toString() {\r
       return getName() + " " + getVersion() + " [" + Tools.getRelativePath(getFpdFile().getPath(), Workspace.getCurrentWorkspace()) + "]";\r
     }\r
+    \r
+    public boolean equals(String platformGuid, String platformVersion) {\r
+        boolean b = false;\r
+        if (this.getGuid().equals(platformGuid)) {\r
+            b = true;\r
+            //\r
+            // Check Version\r
+            //\r
+            if (platformVersion != null) {\r
+                if (!Tools.isEmpty(platformVersion)) {\r
+                    if (!platformVersion.equals(this.getVersion())) {\r
+                        b = false;\r
+                    }\r
+                }\r
+            }\r
+        }\r
+        return b;\r
+    }\r
 }
\ No newline at end of file