]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SourceFiles/SourceFilesVector.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / Identifications / SourceFiles / SourceFilesVector.java
diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SourceFiles/SourceFilesVector.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/SourceFiles/SourceFilesVector.java
deleted file mode 100644 (file)
index 0e5cdc9..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/** @file\r
\r
- The file is used to define Source Files 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
-\r
-package org.tianocore.frameworkwizard.module.Identifications.SourceFiles;\r
-\r
-import java.util.Vector;\r
-\r
-public class SourceFilesVector {\r
-    private Vector<SourceFilesIdentification> vSourceFiles = new Vector<SourceFilesIdentification>();\r
-\r
-    public int findSourceFiles(SourceFilesIdentification sfi) {\r
-        for (int index = 0; index < vSourceFiles.size(); index++) {\r
-            if (vSourceFiles.elementAt(index).equals(sfi)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public int findSourceFiles(String name) {\r
-        for (int index = 0; index < vSourceFiles.size(); index++) {\r
-            if (vSourceFiles.elementAt(index).getFilename().equals(name)) {\r
-                return index;\r
-            }\r
-        }\r
-        return -1;\r
-    }\r
-\r
-    public SourceFilesIdentification getSourceFiles(int index) {\r
-        if (index > -1) {\r
-            return vSourceFiles.elementAt(index);\r
-        } else {\r
-            return null;\r
-        }\r
-    }\r
-\r
-    public void addSourceFiles(SourceFilesIdentification sfi) {\r
-        if (findSourceFiles(sfi) == -1) {\r
-            vSourceFiles.addElement(sfi);\r
-        }\r
-    }\r
-\r
-    public void setSourceFiles(SourceFilesIdentification sfi, int index) {\r
-        vSourceFiles.setElementAt(sfi, index);\r
-    }\r
-\r
-    public void removeSourceFiles(SourceFilesIdentification sfi) {\r
-        int index = findSourceFiles(sfi);\r
-        if (index > -1) {\r
-            vSourceFiles.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public void removeSourceFiles(int index) {\r
-        if (index > -1 && index < this.size()) {\r
-            vSourceFiles.removeElementAt(index);\r
-        }\r
-    }\r
-\r
-    public Vector<SourceFilesIdentification> getvSourceFiles() {\r
-        return vSourceFiles;\r
-    }\r
-\r
-    public void setvSourceFiles(Vector<SourceFilesIdentification> SourceFiles) {\r
-        vSourceFiles = SourceFiles;\r
-    }\r
-    \r
-    public Vector<String> getSourceFilesName() {\r
-        Vector<String> v = new Vector<String>();\r
-        for (int index = 0; index < this.vSourceFiles.size(); index++) {\r
-            v.addElement(vSourceFiles.get(index).getFilename());\r
-        }\r
-        return v;\r
-    }\r
-\r
-    public int size() {\r
-        return this.vSourceFiles.size();\r
-    }\r
-    \r
-    public Vector<String> toStringVector(int index) {\r
-        Vector<String> v = new Vector<String>();\r
-        v.addElement(getSourceFiles(index).getFilename());\r
-        v.addElement(getSourceFiles(index).getTagName());\r
-        v.addElement(getSourceFiles(index).getToolCode());\r
-        v.addElement(getSourceFiles(index).getToolChainFamily());\r
-        return v;\r
-    }\r
-}\r