]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Protocols/ProtocolsVector.java
Retiring the ANT/JAVA build and removing the older EDK II packages that required...
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / Identifications / Protocols / ProtocolsVector.java
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Protocols/ProtocolsVector.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Protocols/ProtocolsVector.java
deleted file mode 100644 (file)
index 7f09670..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-/** @file\r
\r
- The file is used to define Package Dependencies Vector\r
\r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution.  The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
- **/\r
-package org.tianocore.frameworkwizard.module.Identifications.Protocols;\r
-\r
-import java.util.Vector;\r
-\r
-public class ProtocolsVector {\r
-\r
-    private Vector<ProtocolsIdentification> vProtocols = new Vector<ProtocolsIdentification>();\r
-\r
-    public int findProtocols(ProtocolsIdentification sfi) {\r
-        for (int index = 0; index < vProtocols.size(); index++) {\r
-            if (vProtocols.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findProtocols(String name) {\r
-        for (int index = 0; index < vProtocols.size(); index++) {\r
-            if (vProtocols.elementAt(index).getName().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public ProtocolsIdentification getProtocols(int index) {\r
-        if (index > -1) {\r
-            return vProtocols.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addProtocols(ProtocolsIdentification arg0) {\r
-        vProtocols.addElement(arg0);\r
-    }\r
-\r
-    public void setProtocols(ProtocolsIdentification arg0, int arg1) {\r
-        vProtocols.setElementAt(arg0, arg1);\r
-    }\r
-\r
-    public void removeProtocols(ProtocolsIdentification arg0) {\r
-        int index = findProtocols(arg0);\r
-        if (index > -1) {\r
-            vProtocols.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeProtocols(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vProtocols.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<ProtocolsIdentification> getvProtocols() {\r
-        return vProtocols;\r
-    }\r
-\r
-    public void setvProtocols(Vector<ProtocolsIdentification> Protocols) {\r
-        vProtocols = Protocols;\r
-    }\r
-\r
-    public Vector<String> getProtocolsName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vProtocols.size(); index++) {\r
-            v.addElement(vProtocols.get(index).getName());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vProtocols.size();\r
-    }\r
-    \r
-    public Vector<String> toStringVector(int index) {\r
-        Vector<String> v = new Vector<String>();\r
-        v.addElement(getProtocols(index).getName());\r
-        v.addElement(getProtocols(index).getType());\r
-        v.addElement(getProtocols(index).getUsage());\r
-        return v;\r
-    }\r
-}\r