X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Tools%2FSource%2FFrameworkWizard%2Fsrc%2Forg%2Ftianocore%2Fframeworkwizard%2Fmodule%2FIdentifications%2FExterns%2FExternsIdentification.java;h=31979ceb8868e798f20f39e0812cda532bd3cb76;hb=3b7a9058fdf4e730963d20fc5ce57794ac2e6bc7;hp=59b85d7e160c9b4f86f2f158eb017a91364ad8d6;hpb=da4f6c6cae4801e9d10f2ad036f8e935779a5a0d;p=mirror_edk2.git diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java index 59b85d7e16..31979ceb88 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java @@ -17,40 +17,57 @@ package org.tianocore.frameworkwizard.module.Identifications.Externs; import java.util.Vector; +import org.tianocore.frameworkwizard.common.EnumerationData; + public class ExternsIdentification { // // Define class members // - private String name = null; + private String name0 = null; + + private String name1 = null; + + private String name2 = null; + + private String name3 = null; private String type = null; - + private Vector supArchList = null; private String featureFlag = null; - public ExternsIdentification(String arg0, String arg1, String arg2, Vector arg3) { - this.name = (arg0 == null ? "" : arg0); + public ExternsIdentification(String arg0, String arg1) { + this.name0 = (arg0 == null ? "" : arg0); this.type = (arg1 == null ? "" : arg1); - this.featureFlag = (arg2 == null ? "" : arg2); - this.supArchList = arg3; } - public String getFeatureFlag() { - return featureFlag; + public ExternsIdentification(String arg0, String arg1, String arg2, String arg3, Vector arg4) { + this.name0 = (arg0 == null ? "" : arg0); + this.name1 = (arg1 == null ? "" : arg1); + this.type = (arg2 == null ? "" : arg2); + this.featureFlag = (arg3 == null ? "" : arg3); + this.supArchList = arg4; } - public void setFeatureFlag(String featureFlag) { - this.featureFlag = featureFlag; + public ExternsIdentification(String arg0, String arg1, String arg2, String arg3, String arg4, String arg5, + Vector arg6) { + this.name0 = (arg0 == null ? "" : arg0); + this.name1 = (arg1 == null ? "" : arg1); + this.name2 = (arg2 == null ? "" : arg2); + this.name3 = (arg3 == null ? "" : arg3); + this.type = (arg4 == null ? "" : arg4); + this.featureFlag = (arg5 == null ? "" : arg5); + this.supArchList = arg6; } - public String getName() { - return name; + public String getFeatureFlag() { + return featureFlag; } - public void setName(String name) { - this.name = name; + public void setFeatureFlag(String featureFlag) { + this.featureFlag = featureFlag; } public Vector getSupArchList() { @@ -60,11 +77,36 @@ public class ExternsIdentification { public void setSupArchList(Vector supArchList) { this.supArchList = supArchList; } - + public boolean equals(ExternsIdentification pi) { - if (this.name.equals(pi.name)) { - return true; + if (this.type.equals(pi.type)) { + if (this.type.equals(EnumerationData.EXTERNS_SPECIFICATION)) { + if (this.name0.equals(pi.name0)) { + return true; + } + } + if (this.type.equals(EnumerationData.EXTERNS_IMAGE)) { + if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1)) { + return true; + } + } + if (this.type.equals(EnumerationData.EXTERNS_LIBRARY)) { + if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1)) { + return true; + } + } + if (this.type.equals(EnumerationData.EXTERNS_CALL_BACK)) { + if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1)) { + return true; + } + } + if (this.type.equals(EnumerationData.EXTERNS_DRIVER)) { + if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1) && this.name2.equals(pi.name2) && this.name3.equals(pi.name3)) { + return true; + } + } } + return false; } @@ -75,4 +117,36 @@ public class ExternsIdentification { public void setType(String type) { this.type = type; } + + public String getName0() { + return name0; + } + + public void setName0(String name0) { + this.name0 = name0; + } + + public String getName1() { + return name1; + } + + public void setName1(String name1) { + this.name1 = name1; + } + + public String getName2() { + return name2; + } + + public void setName2(String name2) { + this.name2 = name2; + } + + public String getName3() { + return name3; + } + + public void setName3(String name3) { + this.name3 = name3; + } }