X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FJava%2FSource%2FFrameworkWizard%2Fsrc%2Forg%2Ftianocore%2Fframeworkwizard%2Fmodule%2FIdentifications%2FBootModes%2FBootModesVector.java;fp=Tools%2FJava%2FSource%2FFrameworkWizard%2Fsrc%2Forg%2Ftianocore%2Fframeworkwizard%2Fmodule%2FIdentifications%2FBootModes%2FBootModesVector.java;h=0000000000000000000000000000000000000000;hp=4c0840370f4d5b761dc112dbcda63046d80739b9;hb=808def96aa4589fba9c2d0ea55837754a3b7a4f7;hpb=9216450d1143056a50a5f916984a2d7faf590488 diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/BootModes/BootModesVector.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/BootModes/BootModesVector.java deleted file mode 100644 index 4c0840370f..0000000000 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/BootModes/BootModesVector.java +++ /dev/null @@ -1,96 +0,0 @@ -/** @file - - The file is used to define Boot Modes 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.BootModes; - -import java.util.Vector; - -public class BootModesVector { - - private Vector vBootModes = new Vector(); - - public int findBootModes(BootModesIdentification sfi) { - for (int index = 0; index < vBootModes.size(); index++) { - if (vBootModes.elementAt(index).equals(sfi)) { - return index; - } - } - return -1; - } - - public int findBootModes(String name) { - for (int index = 0; index < vBootModes.size(); index++) { - if (vBootModes.elementAt(index).getName().equals(name)) { - return index; - } - } - return -1; - } - - public BootModesIdentification getBootModes(int index) { - if (index > -1) { - return vBootModes.elementAt(index); - } else { - return null; - } - } - - public void addBootModes(BootModesIdentification arg0) { - vBootModes.addElement(arg0); - } - - public void setBootModes(BootModesIdentification arg0, int arg1) { - vBootModes.setElementAt(arg0, arg1); - } - - public void removeBootModes(BootModesIdentification arg0) { - int index = findBootModes(arg0); - if (index > -1) { - vBootModes.removeElementAt(index); - } - } - - public void removeBootModes(int index) { - if (index > -1 && index < this.size()) { - vBootModes.removeElementAt(index); - } - } - - public Vector getvBootModes() { - return vBootModes; - } - - public void setvBootModes(Vector BootModes) { - vBootModes = BootModes; - } - - public Vector getBootModesName() { - Vector v = new Vector(); - for (int index = 0; index < this.vBootModes.size(); index++) { - v.addElement(vBootModes.get(index).getName()); - } - return v; - } - - public int size() { - return this.vBootModes.size(); - } - - public Vector toStringVector(int index) { - Vector v = new Vector(); - v.addElement(getBootModes(index).getName()); - v.addElement(getBootModes(index).getUsage()); - return v; - } -}