diff options
Diffstat (limited to 'Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs')
2 files changed, 0 insertions, 326 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java deleted file mode 100644 index 31979ceb88..0000000000 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java +++ /dev/null @@ -1,152 +0,0 @@ -/** @file
-
- The file is used to define Package Dependencies Identification
-
- Copyright (c) 2006, Intel Corporation
- All rights reserved. This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
- **/
-
-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 name0 = null;
-
- private String name1 = null;
-
- private String name2 = null;
-
- private String name3 = null;
-
- private String type = null;
-
- private Vector<String> supArchList = null;
-
- private String featureFlag = null;
-
- public ExternsIdentification(String arg0, String arg1) {
- this.name0 = (arg0 == null ? "" : arg0);
- this.type = (arg1 == null ? "" : arg1);
- }
-
- public ExternsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> 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 ExternsIdentification(String arg0, String arg1, String arg2, String arg3, String arg4, String arg5,
- Vector<String> 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 getFeatureFlag() {
- return featureFlag;
- }
-
- public void setFeatureFlag(String featureFlag) {
- this.featureFlag = featureFlag;
- }
-
- public Vector<String> getSupArchList() {
- return supArchList;
- }
-
- public void setSupArchList(Vector<String> supArchList) {
- this.supArchList = supArchList;
- }
-
- public boolean equals(ExternsIdentification pi) {
- 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;
- }
-
- public String getType() {
- return type;
- }
-
- 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;
- }
-}
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsVector.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsVector.java deleted file mode 100644 index dbc2035fa9..0000000000 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsVector.java +++ /dev/null @@ -1,174 +0,0 @@ -/** @file
-
- The file is used to define Package Dependencies Vector
-
- Copyright (c) 2006, Intel Corporation
- All rights reserved. This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
- **/
-package org.tianocore.frameworkwizard.module.Identifications.Externs;
-
-import java.util.Vector;
-
-import org.tianocore.frameworkwizard.common.DataType;
-import org.tianocore.frameworkwizard.common.EnumerationData;
-
-public class ExternsVector {
-
- private Vector<ExternsIdentification> vExterns = new Vector<ExternsIdentification>();
-
- public int findExterns(ExternsIdentification sfi) {
- for (int index = 0; index < vExterns.size(); index++) {
- if (vExterns.elementAt(index).equals(sfi)) {
- return index;
- }
- }
- return -1;
- }
-
- public ExternsIdentification getExterns(int index) {
- if (index > -1) {
- return vExterns.elementAt(index);
- } else {
- return null;
- }
- }
-
- public void addExterns(ExternsIdentification arg0) {
- vExterns.addElement(arg0);
- }
-
- public void setExterns(ExternsIdentification arg0, int arg1) {
- vExterns.setElementAt(arg0, arg1);
- }
-
- public void removeExterns(ExternsIdentification arg0) {
- int index = findExterns(arg0);
- if (index > -1) {
- vExterns.removeElementAt(index);
- }
- }
-
- public void removeExterns(int index) {
- if (index > -1 && index < this.size()) {
- vExterns.removeElementAt(index);
- }
- }
-
- public Vector<ExternsIdentification> getvExterns() {
- return vExterns;
- }
-
- public void setvExterns(Vector<ExternsIdentification> Externs) {
- vExterns = Externs;
- }
-
- public int size() {
- return this.vExterns.size();
- }
-
- public Vector<String> toStringVector(int index) {
- Vector<String> v = new Vector<String>();
-
- //
- // For Specification
- //
- if (this.getExterns(index).getType().equals(EnumerationData.EXTERNS_SPECIFICATION)) {
- v.addElement(getExterns(index).getType());
- v.addElement(getExterns(index).getType() + " Name");
- v.addElement(getExterns(index).getName0());
- return v;
- }
-
- //
- // For Image
- //
- if (this.getExterns(index).getType().equals(EnumerationData.EXTERNS_IMAGE)) {
- v.addElement(getExterns(index).getType());
- String name = "";
- String value = "";
-
- name = EnumerationData.EXTERNS_MODULE_ENTRY_POINT;
- value = this.getExterns(index).getName0();
- name = name + DataType.HTML_LINE_SEPARATOR + EnumerationData.EXTERNS_MODULE_UNLOAD_IMAGE;
- value = value + DataType.HTML_LINE_SEPARATOR + this.getExterns(index).getName1()
- + DataType.HTML_LINE_SEPARATOR;
-
- v.addElement("<html>" + name + "<html>");
- v.addElement("<html>" + value + "<html>");
- return v;
- }
-
- //
- // For Library
- //
- if (this.getExterns(index).getType().equals(EnumerationData.EXTERNS_LIBRARY)) {
- v.addElement(getExterns(index).getType());
- String name = "";
- String value = "";
-
- name = EnumerationData.EXTERNS_CONSTRUCTOR;
- value = this.getExterns(index).getName0();
- name = name + DataType.HTML_LINE_SEPARATOR + EnumerationData.EXTERNS_DESTRUCTOR;
- value = value + DataType.HTML_LINE_SEPARATOR + this.getExterns(index).getName1()
- + DataType.HTML_LINE_SEPARATOR;
-
- v.addElement("<html>" + name + "<html>");
- v.addElement("<html>" + value + "<html>");
- return v;
- }
-
- //
- // For Driver
- //
- if (this.getExterns(index).getType().equals(EnumerationData.EXTERNS_DRIVER)) {
- v.addElement(getExterns(index).getType());
- String name = "";
- String value = "";
-
- name = EnumerationData.EXTERNS_DRIVER_BINDING;
- value = this.getExterns(index).getName0();
- name = name + DataType.HTML_LINE_SEPARATOR + EnumerationData.EXTERNS_COMPONENT_NAME;
- value = value + DataType.HTML_LINE_SEPARATOR + this.getExterns(index).getName1();
- name = name + DataType.HTML_LINE_SEPARATOR + EnumerationData.EXTERNS_DRIVER_CONFIG;
- value = value + DataType.HTML_LINE_SEPARATOR + this.getExterns(index).getName2();
- name = name + DataType.HTML_LINE_SEPARATOR + EnumerationData.EXTERNS_DRIVER_DIAG;
- value = value + DataType.HTML_LINE_SEPARATOR + this.getExterns(index).getName3()
- + DataType.HTML_LINE_SEPARATOR;
-
- v.addElement("<html>" + name + "<html>");
- v.addElement("<html>" + value + "<html>");
- return v;
- }
-
- //
- // For Call Back
- //
- if (this.getExterns(index).getType().equals(EnumerationData.EXTERNS_CALL_BACK)) {
- v.addElement(getExterns(index).getType());
- String name = "";
- String value = "";
-
- name = EnumerationData.EXTERNS_VIRTUAL_ADDRESS_MAP_CALL_BACK;
- value = this.getExterns(index).getName0();
- name = name + DataType.HTML_LINE_SEPARATOR + EnumerationData.EXTERNS_EXIT_BOOT_SERVICES_CALL_BACK;
- value = value + DataType.HTML_LINE_SEPARATOR + this.getExterns(index).getName1()
- + DataType.HTML_LINE_SEPARATOR;
-
- v.addElement("<html>" + name + "<html>");
- v.addElement("<html>" + value + "<html>");
- return v;
- }
-
- //
- // Return a empty v
- //
- return v;
- }
-}
|