3 The file is used to define Package Dependencies Vector
5 Copyright (c) 2006, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 package org
.tianocore
.frameworkwizard
.module
.Identifications
.SystemTables
;
17 import java
.util
.Vector
;
19 public class SystemTablesVector
{
21 private Vector
<SystemTablesIdentification
> vSystemTables
= new Vector
<SystemTablesIdentification
>();
23 public int findSystemTables(SystemTablesIdentification sfi
) {
24 for (int index
= 0; index
< vSystemTables
.size(); index
++) {
25 if (vSystemTables
.elementAt(index
).equals(sfi
)) {
32 public int findSystemTables(String name
) {
33 for (int index
= 0; index
< vSystemTables
.size(); index
++) {
34 if (vSystemTables
.elementAt(index
).getName().equals(name
)) {
41 public SystemTablesIdentification
getSystemTables(int index
) {
43 return vSystemTables
.elementAt(index
);
49 public void addSystemTables(SystemTablesIdentification arg0
) {
50 vSystemTables
.addElement(arg0
);
53 public void setSystemTables(SystemTablesIdentification arg0
, int arg1
) {
54 vSystemTables
.setElementAt(arg0
, arg1
);
57 public void removeSystemTables(SystemTablesIdentification arg0
) {
58 int index
= findSystemTables(arg0
);
60 vSystemTables
.removeElementAt(index
);
64 public void removeSystemTables(int index
) {
65 if (index
> -1 && index
< this.size()) {
66 vSystemTables
.removeElementAt(index
);
70 public Vector
<SystemTablesIdentification
> getvSystemTables() {
74 public void setvSystemTables(Vector
<SystemTablesIdentification
> SystemTables
) {
75 vSystemTables
= SystemTables
;
78 public Vector
<String
> getSystemTablesName() {
79 Vector
<String
> v
= new Vector
<String
>();
80 for (int index
= 0; index
< this.vSystemTables
.size(); index
++) {
81 v
.addElement(vSystemTables
.get(index
).getName());
87 return this.vSystemTables
.size();
90 public Vector
<String
> toStringVector(int index
) {
91 Vector
<String
> v
= new Vector
<String
>();
92 v
.addElement(getSystemTables(index
).getName());
93 v
.addElement(getSystemTables(index
).getUsage());