X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Tools%2FSource%2FFrameworkWizard%2Fsrc%2Forg%2Ftianocore%2Fframeworkwizard%2Fplatform%2Fui%2Fid%2FIdentification.java;fp=Tools%2FSource%2FFrameworkWizard%2Fsrc%2Forg%2Ftianocore%2Fframeworkwizard%2Fplatform%2Fui%2Fid%2FIdentification.java;h=0000000000000000000000000000000000000000;hb=3658f95e1a73626ff1cdb9cde3676ebc1edc3523;hp=f22c1241d4a2fa0e41a80a8729daabb54e7529e9;hpb=55e83b18d8d46470c05701cb410f1bc49e33ffc3;p=mirror_edk2.git diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/id/Identification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/id/Identification.java deleted file mode 100644 index f22c1241d4..0000000000 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/id/Identification.java +++ /dev/null @@ -1,77 +0,0 @@ -package org.tianocore.frameworkwizard.platform.ui.id; - -public class Identification { - - String name; - - String guid; - - String version; - - String type; // Optional - - Identification(String name, String guid, String version){ - this.name = name; - this.guid = guid; - this.version = version; - } - - public boolean equals(Object obj) { - if (obj instanceof Identification) { - Identification id = (Identification)obj; - if ( guid.equalsIgnoreCase(id.guid)) { - if (version == null || id.version == null) { - updateName(name, id.name); - return true; - } - else if (version.trim().equalsIgnoreCase("") || id.version.trim().equalsIgnoreCase("")){ - return true; - } - else if (version.equalsIgnoreCase(id.version)) { - return true; - } - } - return false; - } - else { - return super.equals(obj); - } - } - - void updateName(String name1, String name2) { - if (name1 == null) { - name1 = name2; - } - if (name2 == null) { - name2 = name1; - } - } - - public void setName(String name) { - this.name = name; - } - - public void setGuid(String guid) { - this.guid = guid; - } - - public void setVersion(String version) { - this.version = version; - } - - public String getGuid() { - return guid; - } - - public String getName() { - return name; - } - - public String getVersion() { - return version; - } - - public int hashCode(){ - return guid.hashCode(); - } -}