import org.tianocore.frameworkwizard.common.DataType;\r
import org.tianocore.frameworkwizard.common.ui.IDialog;\r
import org.tianocore.frameworkwizard.common.ui.IFrame;\r
+import javax.swing.ImageIcon;\r
\r
/**\r
The class is used to show a about window with copyright information\r
\r
private JButton jButtonOK = null;\r
\r
+ private JLabel jLabelImage = null;\r
+\r
/**\r
This method initializes jButtonOK \r
\r
private JButton getJButtonOK() {\r
if (jButtonOK == null) {\r
jButtonOK = new JButton();\r
- jButtonOK.setBounds(new java.awt.Rectangle(105, 120, 90, 20));\r
+ jButtonOK.setBounds(new java.awt.Rectangle(115,200,90,20));\r
jButtonOK.setText("OK");\r
jButtonOK.addActionListener(this);\r
}\r
\r
**/\r
private void init() {\r
- this.setSize(300, 200);\r
+ this.setSize(320, 265);\r
this.setContentPane(getJContentPane());\r
this.setTitle("About");\r
this.getRootPane().setDefaultButton(jButtonOK);\r
**/\r
private JPanel getJContentPane() {\r
if (jContentPane == null) {\r
+ jLabelImage = new JLabel();\r
+ jLabelImage.setBounds(new java.awt.Rectangle(63,20,193,58));\r
+ jLabelImage.setIcon(new ImageIcon(getClass().getResource("/resources/images/logo.gif")));\r
+ \r
jLabel2 = new JLabel();\r
- jLabel2.setBounds(new java.awt.Rectangle(15, 80, 270, 20));\r
+ jLabel2.setBounds(new java.awt.Rectangle(25,160,270,20));\r
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r
jLabel2.setText("All rights reserved");\r
jLabel1 = new JLabel();\r
- jLabel1.setBounds(new java.awt.Rectangle(15, 50, 270, 20));\r
+ jLabel1.setBounds(new java.awt.Rectangle(25,130,270,20));\r
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r
jLabel1.setText("Copyright (c) 2006, Intel Corporation");\r
jLabel = new JLabel();\r
jLabel.setToolTipText("");\r
- jLabel.setBounds(new java.awt.Rectangle(15, 20, 270, 20));\r
+ jLabel.setBounds(new java.awt.Rectangle(25,90,270,20));\r
jLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r
- jLabel.setText("Framework Development Package System 1.0");\r
+ jLabel.setText("Framework Wizard 1.0");\r
jContentPane = new JPanel();\r
jContentPane.setLayout(null);\r
+ jContentPane.setSize(new java.awt.Dimension(320,235));\r
jContentPane.add(jLabel, null);\r
jContentPane.add(jLabel1, null);\r
jContentPane.add(jLabel2, null);\r
jContentPane.add(getJButtonOK(), null);\r
+ jContentPane.add(jLabelImage, null);\r
}\r
return jContentPane;\r
}\r
import java.awt.event.ActionEvent;\r
import java.io.File;\r
import java.io.IOException;\r
+import java.math.BigInteger;\r
import java.util.Vector;\r
\r
import javax.swing.JFileChooser;\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.FileOperation;\r
import org.tianocore.frameworkwizard.common.IFileFilter;\r
-import org.tianocore.frameworkwizard.common.Identification;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpenFile;\r
import org.tianocore.frameworkwizard.common.SaveFile;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpenFile;\r
import org.tianocore.frameworkwizard.common.ui.IDialog;\r
import org.tianocore.frameworkwizard.common.ui.IFrame;\r
-import org.tianocore.frameworkwizard.module.Identification.ModuleIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
import org.tianocore.frameworkwizard.platform.PlatformIdentification;\r
import org.tianocore.frameworkwizard.workspace.Workspace;\r
// Check for Module\r
//\r
if (mode == DataType.RETURN_TYPE_MODULE_SURFACE_AREA) {\r
+// if (trg.indexOf(DataType.DOS_FILE_SEPARATOR) == -1 && trg.indexOf(DataType.UNIX_FILE_SEPARATOR) == -1) {\r
+// Log.err("The module name must include a path");\r
+// return false;\r
+// }\r
+ trg = this.getModulePath();\r
+ if (src.equals(trg)) {\r
+ Log.err("The source and destination couldn't be same");\r
+ return false;\r
+ }\r
+ trgFile = new File(trg);\r
+ if (trgFile.exists()) {\r
+ Log.err("The target module already exists");\r
+ return false;\r
+ }\r
return checkId();\r
}\r
\r
private void save() throws IOException, XmlException, Exception {\r
String src = this.jTextFieldSource.getText();\r
String trg = this.jTextFieldFilePath.getText();\r
+ Vector<String> vFiles = new Vector<String>();\r
\r
//\r
// Clone Workspace\r
//\r
trg = getModulePath();\r
newId.setPath(trg);\r
+ vFiles = wt.getAllModuleFiles(src);\r
\r
//\r
// First copy all files to new directory\r
//\r
- FileOperation.copyFolder(Tools.getFilePathOnly(src), Tools.getFilePathOnly(trg));\r
-\r
- //\r
- // Delete old spd file\r
- //\r
- FileOperation.delFile(Tools.getFilePathOnly(trg) + DataType.FILE_SEPARATOR + Tools.getFileNameOnly(src));\r
+ FileOperation.copyFile(src, trg);\r
+ for (int index = 1; index < vFiles.size(); index++) {\r
+ String oldFile = vFiles.get(index);\r
+ String newFile = vFiles.get(index).replace(Tools.getFilePathOnly(src), Tools.getFilePathOnly(trg));\r
+ FileOperation.copyFile(oldFile, newFile);\r
+ }\r
\r
//\r
// Create new msa file\r
//\r
trg = this.getPackagePath();\r
newId.setPath(trg);\r
+ vFiles = wt.getAllPakcageFiles(src);\r
+ \r
+ FileOperation.copyFile(src, trg);\r
+ for (int index = 1; index < vFiles.size(); index++) {\r
+ String oldFile = vFiles.get(index);\r
+ String newFile = vFiles.get(index).replace(Tools.getFilePathOnly(src), Tools.getFilePathOnly(trg));\r
+ FileOperation.copyFile(oldFile, newFile);\r
+ }\r
\r
//\r
// First copy all files to new directory\r
//\r
- FileOperation.copyFolder(Tools.getFilePathOnly(src), Tools.getFilePathOnly(trg));\r
+ //FileOperation.copyFolder(Tools.getFilePathOnly(src), Tools.getFilePathOnly(trg));\r
\r
//\r
// Delete old spd file\r
//\r
- FileOperation.delFile(Tools.getFilePathOnly(trg) + DataType.FILE_SEPARATOR + Tools.getFileNameOnly(src));\r
+ //FileOperation.delFile(Tools.getFilePathOnly(trg) + DataType.FILE_SEPARATOR + Tools.getFileNameOnly(src));\r
\r
//\r
// Create new spd file\r
\r
this.returnType = DataType.RETURN_TYPE_PLATFORM_SURFACE_AREA;\r
}\r
+ vFiles = null;\r
}\r
\r
private String getSelectPackagePath() {\r
private String getModulePath() {\r
String trg = this.jTextFieldFilePath.getText();\r
trg = Tools.addPathExt(trg, mode);\r
- trg = getSelectPackagePath() + DataType.FILE_SEPARATOR + trg;\r
+ trg = Tools.addFileSeparator(getSelectPackagePath()) + trg;\r
Tools.convertPathToCurrentOsType(trg);\r
return trg;\r
}\r
private String getPackagePath() {\r
String trg = this.jTextFieldFilePath.getText();\r
trg = Tools.addPathExt(trg, mode);\r
- trg = Workspace.getCurrentWorkspace() + DataType.FILE_SEPARATOR + trg;\r
+ trg = Tools.addFileSeparator(Workspace.getCurrentWorkspace()) + trg;\r
trg = Tools.convertPathToCurrentOsType(trg);\r
return trg;\r
}\r
// Get ClonedFrom then\r
//\r
ModuleDefinitions.ClonedFrom cf = null;\r
+ BigInteger count = new BigInteger("-1");\r
if (pd.getClonedFrom() == null) {\r
cf = ModuleDefinitions.ClonedFrom.Factory.newInstance();\r
} else {\r
cf = pd.getClonedFrom();\r
+ if (cf != null) {\r
+ for (int index = 0; index < cf.getClonedList().size(); index++) {\r
+ if (cf.getClonedList().get(index).getId() != null) {\r
+ count = count.max(cf.getClonedList().get(index).getId());\r
+ }\r
+ }\r
+ }\r
}\r
\r
//\r
ModuleDefinitions.ClonedFrom.Cloned c = ModuleDefinitions.ClonedFrom.Cloned.Factory.newInstance();\r
c.setModuleGuid(id.getGuid());\r
c.setModuleVersion(id.getVersion());\r
+ c.setPackageGuid(wt.getPackageIdByModuleId(oldId).getGuid());\r
+ c.setPackageVersion(wt.getPackageIdByModuleId(oldId).getVersion());\r
+ c.setId(count.add(new BigInteger("1")));\r
\r
cf.addNewCloned();\r
cf.setClonedArray(cf.getClonedList().size() - 1, c);\r
// Get ClonedFrom then\r
//\r
PackageDefinitions.ClonedFrom cf = null;\r
+ BigInteger count = new BigInteger("-1");\r
if (pd.getClonedFrom() == null) {\r
cf = PackageDefinitions.ClonedFrom.Factory.newInstance();\r
} else {\r
cf = pd.getClonedFrom();\r
+ if (cf != null) {\r
+ for (int index = 0; index < cf.getClonedList().size(); index++) {\r
+ if (cf.getClonedList().get(index).getId() != null) {\r
+ count = count.max(cf.getClonedList().get(index).getId());\r
+ }\r
+ }\r
+ }\r
}\r
\r
//\r
PackageDefinitions.ClonedFrom.Cloned c = PackageDefinitions.ClonedFrom.Cloned.Factory.newInstance();\r
c.setPackageGuid(id.getGuid());\r
c.setPackageVersion(id.getVersion());\r
+ c.setId(count.add(new BigInteger("1")));\r
\r
cf.addNewCloned();\r
cf.setClonedArray(cf.getClonedList().size() - 1, c);\r
// Get ClonedFrom then\r
//\r
PlatformDefinitions.ClonedFrom cf = null;\r
+ BigInteger count = new BigInteger("-1");\r
if (pd.getClonedFrom() == null) {\r
cf = PlatformDefinitions.ClonedFrom.Factory.newInstance();\r
} else {\r
cf = pd.getClonedFrom();\r
+ if (cf != null) {\r
+ for (int index = 0; index < cf.getClonedList().size(); index++) {\r
+ if (cf.getClonedList().get(index).getId() != null) {\r
+ count = count.max(cf.getClonedList().get(index).getId());\r
+ }\r
+ }\r
+ }\r
}\r
\r
//\r
PlatformDefinitions.ClonedFrom.Cloned c = PlatformDefinitions.ClonedFrom.Cloned.Factory.newInstance();\r
c.setPlatformGuid(id.getGuid());\r
c.setPlatformVersion(id.getVersion());\r
+ c.setId(count.add(new BigInteger("1")));\r
\r
cf.addNewCloned();\r
cf.setClonedArray(cf.getClonedList().size() - 1, c);\r
import org.tianocore.PlatformSurfaceAreaDocument;\r
import org.tianocore.frameworkwizard.common.DataType;\r
import org.tianocore.frameworkwizard.common.IFileFilter;\r
-import org.tianocore.frameworkwizard.common.Identification;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpenFile;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleList;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
-import org.tianocore.frameworkwizard.common.OpeningPackageList;\r
-import org.tianocore.frameworkwizard.common.OpeningPackageType;\r
-import org.tianocore.frameworkwizard.common.OpeningPlatformList;\r
-import org.tianocore.frameworkwizard.common.OpeningPlatformType;\r
import org.tianocore.frameworkwizard.common.SaveFile;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpenFile;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleList;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageList;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPackageType;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformList;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningPlatformType;\r
import org.tianocore.frameworkwizard.common.ui.IDefaultMutableTreeNode;\r
import org.tianocore.frameworkwizard.common.ui.IDesktopManager;\r
import org.tianocore.frameworkwizard.common.ui.IFrame;\r
import org.tianocore.frameworkwizard.common.ui.ITree;\r
-import org.tianocore.frameworkwizard.module.Identification.ModuleIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
import org.tianocore.frameworkwizard.module.ui.ModuleBootModes;\r
import org.tianocore.frameworkwizard.module.ui.ModuleDataHubs;\r
import org.tianocore.frameworkwizard.module.ui.ModuleDefinitions;\r
\r
private int currentOpeningPlatformIndex = -1;\r
\r
- private String windowTitle = "FrameworkWizard 1.0 ";\r
+ private String projectName = "FrameworkWizard";\r
+ \r
+ private String projectVersion = "0.5";\r
\r
private IDefaultMutableTreeNode dmtnRoot = null;\r
\r
jMenuTools.setText("Tools");\r
jMenuTools.setMnemonic('T');\r
jMenuTools.add(getJMenuItemToolsToolChainConfiguration());\r
- //jMenuTools.addSeparator();\r
+ jMenuTools.addSeparator();\r
jMenuTools.add(getJMenuItemToolsClone());\r
//jMenuTools.addSeparator();\r
jMenuTools.add(getJMenuItemToolsCodeScan());\r
jMenuItemToolsToolChainConfiguration.setText("Tool Chain Configuration...");\r
jMenuItemToolsToolChainConfiguration.setMnemonic('C');\r
jMenuItemToolsToolChainConfiguration.addActionListener(this);\r
- jMenuItemToolsToolChainConfiguration.setVisible(false);\r
}\r
return jMenuItemToolsToolChainConfiguration;\r
}\r
this.addComponentListener(this);\r
this.getCompontentsFromFrameworkDatabase();\r
this.setContentPane(getJContentPane());\r
- this.setTitle(windowTitle + "- [" + Workspace.getCurrentWorkspace() + "]");\r
+ this.setTitle(projectName + " " + projectVersion + " " + "- [" + Workspace.getCurrentWorkspace() + "]");\r
this.setExitType(1);\r
+\r
//\r
// max the window\r
//\r
if (arg0.getSource() == jMenuItemToolsClone) {\r
cloneItem();\r
}\r
+ \r
+ if (arg0.getSource() == jMenuItemToolsToolChainConfiguration) {\r
+ setupToolChainConfiguration();\r
+ }\r
\r
if (arg0.getSource() == jMenuItemHelpAbout) {\r
About a = new About(this, true);\r
// Reinit whole window\r
//\r
closeAll();\r
- this.setTitle(windowTitle + "- [" + Workspace.getCurrentWorkspace() + "]");\r
+ this.setTitle(projectName + " " + projectVersion + " " + "- [" + Workspace.getCurrentWorkspace() + "]");\r
}\r
sw.dispose();\r
}\r
-\r
+ \r
+ /**\r
+ Show Tool Chain Configuration Dialog to setup Tool Chain\r
+ \r
+ **/\r
+ private void setupToolChainConfiguration() {\r
+ ToolChainConfig tcc = new ToolChainConfig(this, true);\r
+ int result = tcc.showDialog();\r
+ \r
+ if (result == DataType.RETURN_TYPE_CANCEL) {\r
+ tcc.dispose();\r
+ }\r
+ }\r
+ \r
/**\r
Clone selected item\r
\r
if (category >= IDefaultMutableTreeNode.FPD_PLATFORMHEADER) {\r
mode = DataType.RETURN_TYPE_PLATFORM_SURFACE_AREA;\r
}\r
+ \r
Clone c = new Clone(this, true, mode, id);\r
int result = c.showDialog();\r
\r
import org.tianocore.frameworkwizard.common.ui.IDialog;\r
import org.tianocore.frameworkwizard.common.ui.IFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
-import org.tianocore.frameworkwizard.module.Identification.ModuleIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
import org.tianocore.frameworkwizard.platform.PlatformIdentification;\r
import org.tianocore.frameworkwizard.workspace.Workspace;\r
String packagePath = packages.elementAt(this.jComboBoxExistingPackage.getSelectedIndex()).getPath();\r
String modulePath = Tools.convertPathToCurrentOsType(this.jTextFieldFilePath.getText());\r
Vector<String> msaFile = wt.getAllModulesOfPackage(packagePath);\r
- packagePath = packagePath.substring(0, packagePath.lastIndexOf(DataType.FILE_SEPARATOR));\r
- String path = Tools.getRelativePath(modulePath, packagePath);\r
\r
for (int index = 0; index < msaFile.size(); index++) {\r
- if (msaFile.elementAt(index).equals(path)) {\r
+ if (msaFile.elementAt(index).equals(modulePath)) {\r
Log.err("This module is already existing in selected package");\r
return false;\r
}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to setup tool chain configuration\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;\r
+\r
+import java.awt.event.ActionEvent;\r
+import java.io.File;\r
+import java.io.IOException;\r
+\r
+import javax.swing.JButton;\r
+import javax.swing.JFileChooser;\r
+import javax.swing.JPanel;\r
+import javax.swing.JScrollPane;\r
+import javax.swing.JTable;\r
+import javax.swing.table.DefaultTableModel;\r
+\r
+import org.tianocore.frameworkwizard.common.DataType;\r
+import org.tianocore.frameworkwizard.common.Log;\r
+import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.ToolChainConfigVector;\r
+import org.tianocore.frameworkwizard.common.ui.IDialog;\r
+import org.tianocore.frameworkwizard.common.ui.IFrame;\r
+import org.tianocore.frameworkwizard.workspace.Workspace;\r
+\r
+public class ToolChainConfig extends IDialog {\r
+\r
+ ///\r
+ /// Define Class Members\r
+ ///\r
+ private static final long serialVersionUID = 1486930966278269085L;\r
+\r
+ private JPanel jContentPane = null;\r
+\r
+ private JScrollPane jScrollPane = null;\r
+\r
+ private DefaultTableModel model = null;\r
+\r
+ private JTable jTable = null;\r
+\r
+ private JButton jButtonOpen = null;\r
+\r
+ private JButton jButtonSave = null;\r
+\r
+ private JButton jButtonClose = null;\r
+\r
+ private String toolsDir = Tools.addFileSeparator(Workspace.getCurrentWorkspace()) + "Tools"\r
+ + DataType.FILE_SEPARATOR + "Conf";\r
+\r
+ private String currentFile = Tools.addFileSeparator(toolsDir) + "tools_def.template";\r
+\r
+ private ToolChainConfigVector vtcc = new ToolChainConfigVector();\r
+\r
+ /**\r
+ * This method initializes jScrollPane \r
+ * \r
+ * @return javax.swing.JScrollPane \r
+ */\r
+ private JScrollPane getJScrollPane() {\r
+ if (jScrollPane == null) {\r
+ jScrollPane = new JScrollPane();\r
+ jScrollPane.setBounds(new java.awt.Rectangle(15, 15, 555, 345));\r
+ jScrollPane.setViewportView(getJTable());\r
+ }\r
+ return jScrollPane;\r
+ }\r
+\r
+ /**\r
+ * This method initializes jTable \r
+ * \r
+ * @return javax.swing.JTable \r
+ */\r
+ private JTable getJTable() {\r
+ if (jTable == null) {\r
+ jTable = new JTable();\r
+ // model = new DefaultTableModel();\r
+ // jTable = new JTable(model);\r
+ // jTable.setRowHeight(20);\r
+ }\r
+ return jTable;\r
+ }\r
+\r
+ /**\r
+ * This method initializes jButtonOpen \r
+ * \r
+ * @return javax.swing.JButton \r
+ */\r
+ private JButton getJButtonOpen() {\r
+ if (jButtonOpen == null) {\r
+ jButtonOpen = new JButton();\r
+ jButtonOpen.setBounds(new java.awt.Rectangle(140, 390, 120, 25));\r
+ jButtonOpen.setText("Open a file");\r
+ jButtonOpen.addActionListener(this);\r
+ }\r
+ return jButtonOpen;\r
+ }\r
+\r
+ /**\r
+ * This method initializes jButtonSave \r
+ * \r
+ * @return javax.swing.JButton \r
+ */\r
+ private JButton getJButtonSave() {\r
+ if (jButtonSave == null) {\r
+ jButtonSave = new JButton();\r
+ jButtonSave.setBounds(new java.awt.Rectangle(280, 390, 120, 25));\r
+ jButtonSave.setText("Save to a file");\r
+ jButtonSave.addActionListener(this);\r
+ }\r
+ return jButtonSave;\r
+ }\r
+\r
+ /**\r
+ * This method initializes jButtonClose \r
+ * \r
+ * @return javax.swing.JButton \r
+ */\r
+ private JButton getJButtonClose() {\r
+ if (jButtonClose == null) {\r
+ jButtonClose = new JButton();\r
+ jButtonClose.setBounds(new java.awt.Rectangle(465, 390, 100, 25));\r
+ jButtonClose.setText("Close");\r
+ jButtonClose.addActionListener(this);\r
+ }\r
+ return jButtonClose;\r
+ }\r
+\r
+ /**\r
+ \r
+ @param args\r
+ \r
+ **/\r
+ public static void main(String[] args) {\r
+ // TODO Auto-generated method stub\r
+\r
+ }\r
+\r
+ /**\r
+ * This is the default constructor\r
+ */\r
+ public ToolChainConfig(IFrame parentFrame, boolean modal) {\r
+ super(parentFrame, modal);\r
+ init();\r
+ }\r
+\r
+ /**\r
+ * This method initializes this\r
+ * \r
+ * @return void\r
+ */\r
+ private void init() {\r
+ this.setSize(600, 480);\r
+ this.setContentPane(getJContentPane());\r
+ this.setTitle("Tool Chain Configuration");\r
+ this.centerWindow();\r
+\r
+ //\r
+ // Read default file\r
+ //\r
+ File f = new File(currentFile);\r
+ if (f.exists()) {\r
+ try {\r
+ vtcc.removeAll();\r
+ vtcc.parseFile(this.currentFile);\r
+ this.setTitle("Tool Chain Configuration" + " [" + currentFile + "]");\r
+ } catch (IOException e) {\r
+ Log.log(this.currentFile + "Read Error", e.getMessage());\r
+ e.printStackTrace();\r
+ }\r
+ } else {\r
+ Log.log("Open file", this.currentFile + " Not Found");\r
+ }\r
+\r
+ showTable();\r
+ }\r
+\r
+ /**\r
+ * This method initializes jContentPane\r
+ * \r
+ * @return javax.swing.JPanel\r
+ */\r
+ private JPanel getJContentPane() {\r
+ if (jContentPane == null) {\r
+ jContentPane = new JPanel();\r
+ jContentPane.setLayout(null);\r
+ jContentPane.add(getJScrollPane(), null);\r
+ jContentPane.add(getJButtonOpen(), null);\r
+ jContentPane.add(getJButtonSave(), null);\r
+ jContentPane.add(getJButtonClose(), null);\r
+ }\r
+ return jContentPane;\r
+ }\r
+\r
+ /* (non-Javadoc)\r
+ * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\r
+ * \r
+ * Override actionPerformed to listen all actions\r
+ */\r
+ public void actionPerformed(ActionEvent arg0) {\r
+ if (arg0.getSource() == jButtonClose) {\r
+ this.setVisible(false);\r
+ this.returnType = DataType.RETURN_TYPE_CANCEL;\r
+ }\r
+\r
+ if (arg0.getSource() == jButtonOpen) {\r
+ JFileChooser fc = new JFileChooser();\r
+ fc.setAcceptAllFileFilterUsed(false);\r
+ fc.setCurrentDirectory(new File(toolsDir));\r
+\r
+ int result = fc.showSaveDialog(new JPanel());\r
+ if (result == JFileChooser.APPROVE_OPTION) {\r
+ try {\r
+ vtcc.removeAll();\r
+ vtcc.parseFile(fc.getSelectedFile().getPath());\r
+ currentFile = fc.getSelectedFile().getPath(); \r
+ this.setTitle("Tool Chain Configuration" + " [" + currentFile + "]");\r
+ } catch (IOException e) {\r
+ Log.err(this.currentFile + "Read Error", e.getMessage());\r
+ e.printStackTrace();\r
+ return;\r
+ }\r
+ this.showTable();\r
+ }\r
+ }\r
+\r
+ if (arg0.getSource() == jButtonSave) {\r
+ JFileChooser fc = new JFileChooser();\r
+ fc.setAcceptAllFileFilterUsed(false);\r
+ fc.setCurrentDirectory(new File(toolsDir));\r
+\r
+ int result = fc.showOpenDialog(new JPanel());\r
+ if (result == JFileChooser.APPROVE_OPTION) {\r
+ }\r
+ }\r
+ }\r
+\r
+ /**\r
+ Read content of vector and put then into table\r
+ \r
+ **/\r
+ private void showTable() {\r
+ model = new DefaultTableModel();\r
+ jTable = new JTable(model);\r
+ jTable.setRowHeight(20);\r
+\r
+ model.addColumn("Name");\r
+ model.addColumn("Value");\r
+ if (vtcc.size() > 0) {\r
+ for (int index = 0; index < vtcc.size(); index++) {\r
+ model.addRow(vtcc.toStringVector(index));\r
+ }\r
+ }\r
+ this.jScrollPane.setViewportView(this.jTable);\r
+ }\r
+}\r
\r
**/\r
public static void main(String[] args) throws Exception {\r
- FileOperation.newFolder("C:\\aaa\\bbb\\ccc\\ddd\\eee");\r
+ FileOperation.newFolder("C:\\aaa\\aaa\\aaa\\aaa\\aaa");\r
}\r
\r
/**\r
if (folderPath.indexOf(DataType.FILE_SEPARATOR) > -1) {\r
temp = temp + folderPath.substring(0, folderPath.indexOf(DataType.FILE_SEPARATOR));\r
if (temp.endsWith(":")) {\r
- temp = temp + DataType.FILE_SEPARATOR;\r
+ temp = Tools.addFileSeparator(temp);\r
folderPath = folderPath.substring(folderPath.indexOf(DataType.FILE_SEPARATOR) + DataType.FILE_SEPARATOR.length());\r
continue;\r
}\r
- temp = temp + DataType.FILE_SEPARATOR;\r
+ temp = Tools.addFileSeparator(temp);\r
folderPath = folderPath.substring(folderPath.indexOf(DataType.FILE_SEPARATOR) + DataType.FILE_SEPARATOR.length()); \r
} else {\r
- temp = temp + DataType.FILE_SEPARATOR + folderPath;\r
+ temp = Tools.addFileSeparator(temp) + folderPath;\r
folderPath = "";\r
}\r
File f = new File(temp);\r
\r
**/\r
public static void copyFile(String oldPath, String newPath) throws Exception {\r
+ oldPath = Tools.convertPathToCurrentOsType(oldPath);\r
+ newPath = Tools.convertPathToCurrentOsType(newPath);\r
+ \r
int byteCount = 0;\r
File oldFile = new File(oldPath);\r
+ \r
+ File newFile = new File(Tools.getFilePathOnly(newPath));\r
+ if (!newFile.exists()) {\r
+ newFolder(Tools.getFilePathOnly(newPath));\r
+ }\r
\r
if (oldFile.exists()) {\r
InputStream is = new FileInputStream(oldPath);\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to save basic information\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.common.Identifications;\r
+\r
+public class Identification {\r
+\r
+ ///\r
+ /// Define class members\r
+ ///\r
+ private String name;\r
+ \r
+ private String guid;\r
+ \r
+ private String version;\r
+ \r
+ private String path;\r
+ \r
+ public Identification(String name, String guid, String version) {\r
+ this.name = name;\r
+ this.guid = guid;\r
+ this.version = version;\r
+ }\r
+ \r
+ public Identification() {\r
+ \r
+ }\r
+ \r
+ public Identification(String name, String guid, String version, String path) {\r
+ this.name = name;\r
+ this.guid = guid;\r
+ this.version = version;\r
+ this.path = path;\r
+ }\r
+ \r
+ public boolean equals(Object obj) {\r
+ if (obj instanceof Identification) {\r
+ Identification id = (Identification)obj;\r
+ if (path.equals(id.path)) {\r
+ //if ( name.equals(id.name) && guid.equals(id.guid) && version.equals(id.version)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+ else {\r
+ return super.equals(obj);\r
+ }\r
+ }\r
+ \r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public void setGuid(String guid) {\r
+ this.guid = guid;\r
+ }\r
+\r
+ public void setVersion(String version) {\r
+ this.version = version;\r
+ }\r
+ \r
+ public void setPath(String path) {\r
+ this.path = path;\r
+ }\r
+\r
+ public String getGuid() {\r
+ return guid;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public String getVersion() {\r
+ return version;\r
+ }\r
+\r
+ public String getPath() {\r
+ return path;\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file provides interface to open xml file.\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.common.Identifications;\r
+\r
+import java.io.File;\r
+import java.io.IOException;\r
+\r
+import org.apache.xmlbeans.XmlException;\r
+import org.apache.xmlbeans.XmlObject;\r
+import org.tianocore.FrameworkDatabaseDocument;\r
+import org.tianocore.ModuleSurfaceAreaDocument;\r
+import org.tianocore.PackageSurfaceAreaDocument;\r
+import org.tianocore.PlatformSurfaceAreaDocument;\r
+import org.tianocore.FrameworkDatabaseDocument.FrameworkDatabase;\r
+import org.tianocore.ModuleSurfaceAreaDocument.ModuleSurfaceArea;\r
+import org.tianocore.PackageSurfaceAreaDocument.PackageSurfaceArea;\r
+import org.tianocore.PlatformSurfaceAreaDocument.PlatformSurfaceArea;\r
+import org.tianocore.frameworkwizard.common.Log;\r
+\r
+public class OpenFile {\r
+ /**\r
+ \r
+ @param args\r
+ \r
+ **/\r
+ public static void main(String[] args) {\r
+ // TODO Auto-generated method stub\r
+\r
+ }\r
+\r
+ /**\r
+ Open specificed Msa file and read its content\r
+ \r
+ @param strMsaFilePath The input data of Msa File Path\r
+ \r
+ **/\r
+ public static ModuleSurfaceArea openMsaFile(String strMsaFilePath) throws IOException, XmlException, Exception {\r
+ Log.log("Open Msa", strMsaFilePath);\r
+ File msaFile = new File(strMsaFilePath);\r
+ ModuleSurfaceAreaDocument xmlMsaDoc = (ModuleSurfaceAreaDocument) XmlObject.Factory.parse(msaFile);\r
+ return xmlMsaDoc.getModuleSurfaceArea();\r
+ }\r
+\r
+ /**\r
+ Open specificed Spd file and read its content\r
+ \r
+ @param strSpdFilePath The input data of Spd File Path\r
+ \r
+ **/\r
+ public static PackageSurfaceArea openSpdFile(String strSpdFilePath) throws IOException, XmlException, Exception {\r
+ Log.log("Open Spd", strSpdFilePath);\r
+ File spdFile = new File(strSpdFilePath);\r
+ PackageSurfaceAreaDocument xmlSpdDoc = (PackageSurfaceAreaDocument) XmlObject.Factory.parse(spdFile);\r
+ return xmlSpdDoc.getPackageSurfaceArea();\r
+ }\r
+\r
+ /**\r
+ Open specificed Fpd file and read its content\r
+ \r
+ @param strFpdFilePath The input data of Fpd File Path\r
+ \r
+ **/\r
+ public static PlatformSurfaceArea openFpdFile(String strFpdFilePath) throws IOException, XmlException,\r
+ Exception {\r
+ Log.log("Open Fpd", strFpdFilePath);\r
+ File fpdFile = new File(strFpdFilePath);\r
+ PlatformSurfaceAreaDocument xmlFpdDoc = null;\r
+ xmlFpdDoc = (PlatformSurfaceAreaDocument) XmlObject.Factory.parse(fpdFile);\r
+ return xmlFpdDoc.getPlatformSurfaceArea();\r
+ }\r
+\r
+ /**\r
+ \r
+ Open specificed Framework Database file and read its content\r
+ \r
+ */\r
+ public static FrameworkDatabase openFrameworkDb(String strDbFilePath) throws IOException, XmlException, Exception {\r
+ Log.log("Open Framework Database", strDbFilePath);\r
+ File db = new File(strDbFilePath);\r
+ FrameworkDatabaseDocument xmlDb = null;\r
+ xmlDb = (FrameworkDatabaseDocument) XmlObject.Factory.parse(db);\r
+ return xmlDb.getFrameworkDatabase();\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to define common opening file type\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.common.Identifications;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+\r
+public class OpeningFileType {\r
+ //\r
+ // Define class members\r
+ //\r
+ \r
+ private Identification id = null;\r
+ \r
+ private boolean isSaved = true;\r
+ \r
+ private boolean isNew = false;\r
+ \r
+ private TreePath treePath = null;\r
+ \r
+ public OpeningFileType() {\r
+ \r
+ }\r
+ \r
+ public OpeningFileType(Identification identification) {\r
+ this.id = identification;\r
+ }\r
+ \r
+ public OpeningFileType(Identification identification, TreePath treePathValue) {\r
+ this.id = identification;\r
+ this.treePath = treePathValue;\r
+ }\r
+\r
+ public Identification getId() {\r
+ return id;\r
+ }\r
+\r
+ public void setId(Identification id) {\r
+ this.id = id;\r
+ }\r
+\r
+ public boolean isNew() {\r
+ return isNew;\r
+ }\r
+\r
+ public void setNew(boolean isNew) {\r
+ this.isNew = isNew;\r
+ }\r
+\r
+ public boolean isSaved() {\r
+ return isSaved;\r
+ }\r
+\r
+ public void setSaved(boolean isSaved) {\r
+ this.isSaved = isSaved;\r
+ }\r
+\r
+ public TreePath getTreePath() {\r
+ return treePath;\r
+ }\r
+\r
+ public void setTreePath(TreePath treePath) {\r
+ this.treePath = treePath;\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to define opening module list\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.common.Identifications;\r
+\r
+import java.util.Vector;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.ModuleSurfaceAreaDocument;\r
+\r
+public class OpeningModuleList {\r
+ private Vector<OpeningModuleType> vOpeningModuleList = new Vector<OpeningModuleType>();\r
+\r
+ public OpeningModuleList() {\r
+\r
+ }\r
+ public Vector<OpeningModuleType> getVOpeningModuleList() {\r
+ return vOpeningModuleList;\r
+ }\r
+\r
+ public void setVOpeningModuleList(Vector<OpeningModuleType> openingModuleList) {\r
+ vOpeningModuleList = openingModuleList;\r
+ }\r
+ \r
+ public void insertToOpeningModuleList(Identification id, ModuleSurfaceAreaDocument.ModuleSurfaceArea xmlMsa) {\r
+ vOpeningModuleList.addElement(new OpeningModuleType(id, xmlMsa));\r
+ }\r
+ \r
+ public OpeningModuleType getOpeningModuleByIndex(int index) {\r
+ if (index > -1 && index < vOpeningModuleList.size()) {\r
+ return vOpeningModuleList.elementAt(index);\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public OpeningModuleType getOpeningModuleById(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return vOpeningModuleList.elementAt(index);\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public int findIndexOfListById(Identification id) {\r
+ for (int index = 0; index < vOpeningModuleList.size(); index++) {\r
+ if (vOpeningModuleList.elementAt(index).getId().equals(id)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+ \r
+ public void removeFromOpeningModuleListByIndex(int index) {\r
+ if (index > -1 && index < vOpeningModuleList.size()) {\r
+ vOpeningModuleList.removeElementAt(index);\r
+ }\r
+ }\r
+ \r
+ public void removeFromOpeningModuleListById(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ vOpeningModuleList.removeElementAt(findIndexOfListById(id));\r
+ }\r
+ }\r
+ \r
+ public void removeAllFromOpeningModuleList() {\r
+ vOpeningModuleList.removeAllElements();\r
+ }\r
+ \r
+ public ModuleSurfaceAreaDocument.ModuleSurfaceArea getModuleSurfaceAreaFromId(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return vOpeningModuleList.elementAt(index).getXmlMsa();\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public boolean existsModule(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+ \r
+ public void setModuleSaved(Identification id, boolean isSaved) {\r
+ setModuleSaved(findIndexOfListById(id), isSaved);\r
+ }\r
+ \r
+ public void setModuleSaved(int index, boolean isSaved) {\r
+ if (index > -1) {\r
+ vOpeningModuleList.elementAt(index).setSaved(isSaved);\r
+ }\r
+ }\r
+ \r
+ public boolean getModuleSaved(Identification id) {\r
+ return getModuleSaved(findIndexOfListById(id));\r
+ }\r
+ \r
+ public boolean getModuleSaved(int index) {\r
+ if (index > -1) {\r
+ return vOpeningModuleList.elementAt(index).isSaved();\r
+ }\r
+ return true;\r
+ }\r
+ \r
+ public void setTreePathById(Identification id, TreePath treePath) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ vOpeningModuleList.elementAt(index).setTreePath(treePath);\r
+ }\r
+ }\r
+ \r
+ public TreePath getTreePathById(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return vOpeningModuleList.elementAt(index).getTreePath();\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public TreePath getTreePathByIndex(int index) {\r
+ if (index > -1) {\r
+ return vOpeningModuleList.elementAt(index).getTreePath();\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public void setNew(Identification id, boolean isNew) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ vOpeningModuleList.elementAt(index).setNew(isNew);\r
+ }\r
+ }\r
+ \r
+ public int size() {\r
+ return vOpeningModuleList.size();\r
+ }\r
+ \r
+ public boolean isSaved() {\r
+ for (int index = 0; index < this.size(); index++) {\r
+ if (!this.getModuleSaved(index)) {\r
+ return false;\r
+ }\r
+ }\r
+ return true;\r
+ }\r
+ \r
+ public boolean isOpend() {\r
+ if (this.size() > 0 ) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to define opening module type\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.common.Identifications;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.ModuleSurfaceAreaDocument;\r
+\r
+public class OpeningModuleType extends OpeningFileType{\r
+ //\r
+ // Define class members\r
+ //\r
+ private ModuleSurfaceAreaDocument.ModuleSurfaceArea xmlMsa = null;\r
+ \r
+ public OpeningModuleType() {\r
+ \r
+ }\r
+ \r
+ public OpeningModuleType(Identification identification, ModuleSurfaceAreaDocument.ModuleSurfaceArea msa) {\r
+ super(identification);\r
+ this.xmlMsa = msa;\r
+ }\r
+ \r
+ public OpeningModuleType(Identification identification, ModuleSurfaceAreaDocument.ModuleSurfaceArea msa, TreePath treePath) {\r
+ super(identification, treePath);\r
+ this.xmlMsa = msa;\r
+ }\r
+\r
+ public ModuleSurfaceAreaDocument.ModuleSurfaceArea getXmlMsa() {\r
+ return xmlMsa;\r
+ }\r
+\r
+ public void setXmlMsa(ModuleSurfaceAreaDocument.ModuleSurfaceArea xmlMsa) {\r
+ this.xmlMsa = xmlMsa;\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to define opening package list\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.common.Identifications;\r
+\r
+import java.util.Vector;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.PackageSurfaceAreaDocument;\r
+\r
+public class OpeningPackageList {\r
+ private Vector<OpeningPackageType> vOpeningPackageList = new Vector<OpeningPackageType>();\r
+\r
+ public OpeningPackageList() {\r
+\r
+ }\r
+ \r
+ public Vector<OpeningPackageType> getVOpeningPackageList() {\r
+ return vOpeningPackageList;\r
+ }\r
+\r
+ public void setVOpeningPackageList(Vector<OpeningPackageType> openingPackageList) {\r
+ vOpeningPackageList = openingPackageList;\r
+ }\r
+ \r
+ public void insertToOpeningPackageList(Identification id, PackageSurfaceAreaDocument.PackageSurfaceArea xmlMsa) {\r
+ vOpeningPackageList.addElement(new OpeningPackageType(id, xmlMsa));\r
+ }\r
+ \r
+ public OpeningPackageType getOpeningPackageByIndex(int index) {\r
+ if (index > -1 && index < vOpeningPackageList.size()) {\r
+ return vOpeningPackageList.elementAt(index);\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public OpeningPackageType getOpeningPackageById(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return vOpeningPackageList.elementAt(index);\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public int findIndexOfListById(Identification id) {\r
+ for (int index = 0; index < vOpeningPackageList.size(); index++) {\r
+ if (vOpeningPackageList.elementAt(index).getId().equals(id)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+ \r
+ public void removeFromOpeningPackageListByIndex(int index) {\r
+ if (index > -1 && index < vOpeningPackageList.size()) {\r
+ vOpeningPackageList.removeElementAt(index);\r
+ }\r
+ }\r
+ \r
+ public void removeFromOpeningPackageListById(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ vOpeningPackageList.removeElementAt(findIndexOfListById(id));\r
+ }\r
+ }\r
+ \r
+ public void removeAllFromOpeningPackageList() {\r
+ vOpeningPackageList.removeAllElements();\r
+ }\r
+ \r
+ public PackageSurfaceAreaDocument.PackageSurfaceArea getPackageSurfaceAreaFromId(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return vOpeningPackageList.elementAt(index).getXmlSpd();\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public boolean existsPackage(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+ \r
+ public void setPackageSaved(Identification id, boolean isSaved) {\r
+ setPackageSaved(findIndexOfListById(id), isSaved);\r
+ }\r
+ \r
+ public void setPackageSaved(int index, boolean isSaved) {\r
+ if (index > -1) {\r
+ vOpeningPackageList.elementAt(index).setSaved(isSaved);\r
+ }\r
+ }\r
+ \r
+ public boolean getPackageSaved(Identification id) {\r
+ return getPackageSaved(findIndexOfListById(id));\r
+ }\r
+ \r
+ public boolean getPackageSaved(int index) {\r
+ if (index > -1) {\r
+ return vOpeningPackageList.elementAt(index).isSaved();\r
+ }\r
+ return true;\r
+ }\r
+ \r
+ public void setTreePathById(Identification id, TreePath treePath) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ vOpeningPackageList.elementAt(index).setTreePath(treePath);\r
+ }\r
+ }\r
+ \r
+ public TreePath getTreePathById(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return vOpeningPackageList.elementAt(index).getTreePath();\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public TreePath getTreePathByIndex(int index) {\r
+ if (index > -1) {\r
+ return vOpeningPackageList.elementAt(index).getTreePath();\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public void setNew(Identification id, boolean isNew) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ vOpeningPackageList.elementAt(index).setNew(isNew);\r
+ }\r
+ }\r
+ \r
+ public int size() {\r
+ return vOpeningPackageList.size();\r
+ }\r
+ \r
+ public boolean isSaved() {\r
+ for (int index = 0; index < this.size(); index++) {\r
+ if (!this.getPackageSaved(index)) {\r
+ return false;\r
+ }\r
+ }\r
+ return true;\r
+ }\r
+ \r
+ public boolean isOpend() {\r
+ if (this.size() > 0 ) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to define opening package type\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.common.Identifications;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.PackageSurfaceAreaDocument;\r
+\r
+public class OpeningPackageType extends OpeningFileType {\r
+ //\r
+ // Define class members\r
+ //\r
+ private PackageSurfaceAreaDocument.PackageSurfaceArea xmlSpd = null;\r
+ \r
+ public OpeningPackageType() {\r
+ \r
+ }\r
+ \r
+ public OpeningPackageType(Identification identification, PackageSurfaceAreaDocument.PackageSurfaceArea spd) {\r
+ super(identification);\r
+ this.xmlSpd = spd;\r
+ }\r
+ \r
+ public OpeningPackageType(Identification identification, PackageSurfaceAreaDocument.PackageSurfaceArea spd, TreePath treePath) {\r
+ super(identification, treePath);\r
+ this.xmlSpd = spd;\r
+ }\r
+\r
+ public PackageSurfaceAreaDocument.PackageSurfaceArea getXmlSpd() {\r
+ return xmlSpd;\r
+ }\r
+\r
+ public void setXmlSpd(PackageSurfaceAreaDocument.PackageSurfaceArea xmlSpd) {\r
+ this.xmlSpd = xmlSpd;\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to define opening package list\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.common.Identifications;\r
+\r
+import java.util.Vector;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.PlatformSurfaceAreaDocument;\r
+\r
+public class OpeningPlatformList {\r
+ \r
+ private Vector<OpeningPlatformType> vOpeningPlatformList = new Vector<OpeningPlatformType>();\r
+\r
+ public OpeningPlatformList() {\r
+\r
+ }\r
+ \r
+ public Vector<OpeningPlatformType> getVOpeningPlatformList() {\r
+ return vOpeningPlatformList;\r
+ }\r
+\r
+ public void setVOpeningPlatformList(Vector<OpeningPlatformType> openingPlatformList) {\r
+ vOpeningPlatformList = openingPlatformList;\r
+ }\r
+ \r
+ public void insertToOpeningPlatformList(Identification id, PlatformSurfaceAreaDocument.PlatformSurfaceArea xmlFpd) {\r
+ vOpeningPlatformList.addElement(new OpeningPlatformType(id, xmlFpd));\r
+ }\r
+ \r
+ public OpeningPlatformType getOpeningPlatformByIndex(int index) {\r
+ if (index > -1 && index < vOpeningPlatformList.size()) {\r
+ return vOpeningPlatformList.elementAt(index);\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public OpeningPlatformType getOpeningPlatformById(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return vOpeningPlatformList.elementAt(index);\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public int findIndexOfListById(Identification id) {\r
+ for (int index = 0; index < vOpeningPlatformList.size(); index++) {\r
+ if (vOpeningPlatformList.elementAt(index).getId().equals(id)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+ \r
+ public void removeFromOpeningPlatformListByIndex(int index) {\r
+ if (index > -1 && index < vOpeningPlatformList.size()) {\r
+ vOpeningPlatformList.removeElementAt(index);\r
+ }\r
+ }\r
+ \r
+ public void removeFromOpeningPlatformListById(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ vOpeningPlatformList.removeElementAt(findIndexOfListById(id));\r
+ }\r
+ }\r
+ \r
+ public void removeAllFromOpeningPlatformList() {\r
+ vOpeningPlatformList.removeAllElements();\r
+ }\r
+ \r
+ public PlatformSurfaceAreaDocument.PlatformSurfaceArea getPlatformSurfaceAreaFromId(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return vOpeningPlatformList.elementAt(index).getXmlFpd();\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public boolean existsPlatform(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+ \r
+ \r
+ public void setPlatformSaved(Identification id, boolean isSaved) {\r
+ setPlatformSaved(findIndexOfListById(id), isSaved);\r
+ }\r
+ \r
+ public void setPlatformSaved(int index, boolean isSaved) {\r
+ if (index > -1) {\r
+ vOpeningPlatformList.elementAt(index).setSaved(isSaved);\r
+ }\r
+ }\r
+ \r
+ public boolean getPlatformSaved(Identification id) {\r
+ return getPlatformSaved(findIndexOfListById(id));\r
+ }\r
+ \r
+ public boolean getPlatformSaved(int index) {\r
+ if (index > -1) {\r
+ return vOpeningPlatformList.elementAt(index).isSaved();\r
+ }\r
+ return true;\r
+ }\r
+ \r
+ public void setTreePathById(Identification id, TreePath treePath) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ vOpeningPlatformList.elementAt(index).setTreePath(treePath);\r
+ }\r
+ }\r
+ \r
+ public TreePath getTreePathById(Identification id) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ return vOpeningPlatformList.elementAt(index).getTreePath();\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public TreePath getTreePathByIndex(int index) {\r
+ if (index > -1) {\r
+ return vOpeningPlatformList.elementAt(index).getTreePath();\r
+ }\r
+ return null;\r
+ }\r
+ \r
+ public void setNew(Identification id, boolean isNew) {\r
+ int index = findIndexOfListById(id);\r
+ if (index > -1) {\r
+ vOpeningPlatformList.elementAt(index).setNew(isNew);\r
+ }\r
+ }\r
+ \r
+ public int size() {\r
+ return vOpeningPlatformList.size();\r
+ }\r
+ \r
+ public boolean isSaved() {\r
+ for (int index = 0; index < this.size(); index++) {\r
+ if (!this.getPlatformSaved(index)) {\r
+ return false;\r
+ }\r
+ }\r
+ return true;\r
+ }\r
+ \r
+ public boolean isOpend() {\r
+ if (this.size() > 0 ) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to define opening platform type\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.common.Identifications;\r
+\r
+import javax.swing.tree.TreePath;\r
+\r
+import org.tianocore.PlatformSurfaceAreaDocument;\r
+\r
+public class OpeningPlatformType extends OpeningFileType {\r
+ //\r
+ // Define class members\r
+ //\r
+ private PlatformSurfaceAreaDocument.PlatformSurfaceArea xmlFpd = null;\r
+ \r
+ public OpeningPlatformType() {\r
+ \r
+ }\r
+ \r
+ public OpeningPlatformType(Identification identification, PlatformSurfaceAreaDocument.PlatformSurfaceArea fpd) {\r
+ super(identification);\r
+ this.xmlFpd = fpd;\r
+ }\r
+ \r
+ public OpeningPlatformType(Identification identification, PlatformSurfaceAreaDocument.PlatformSurfaceArea fpd, TreePath treePath) {\r
+ super(identification, treePath);\r
+ this.xmlFpd = fpd;\r
+ }\r
+\r
+ public PlatformSurfaceAreaDocument.PlatformSurfaceArea getXmlFpd() {\r
+ return xmlFpd;\r
+ }\r
+\r
+ public void setXmlFpd(PlatformSurfaceAreaDocument.PlatformSurfaceArea xmlFpd) {\r
+ this.xmlFpd = xmlFpd;\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Tool Chain Configuration Identification\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.common.Identifications;\r
+\r
+public class ToolChainConfigId {\r
+\r
+ public static final String COMMENTS = "#";\r
+ \r
+ public static final String EQUALS = "=";\r
+ \r
+ private String name = "";\r
+ \r
+ private String value = "";\r
+ \r
+ public ToolChainConfigId(String strName, String strValue) {\r
+ this.name = strName;\r
+ this.value = strValue;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public String getValue() {\r
+ return value;\r
+ }\r
+\r
+ public void setValue(String value) {\r
+ this.value = value;\r
+ }\r
+ \r
+ public boolean equals(ToolChainConfigId id) {\r
+ if (this.name.equals(id.name)) {\r
+ return true;\r
+ } else {\r
+ return false;\r
+ }\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to define Tool Chain Configuration 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.common.Identifications;\r
+\r
+import java.io.BufferedReader;\r
+import java.io.FileNotFoundException;\r
+import java.io.FileReader;\r
+import java.io.IOException;\r
+import java.util.Vector;\r
+\r
+public class ToolChainConfigVector {\r
+\r
+ private Vector<ToolChainConfigId> vToolChainConfigs = new Vector<ToolChainConfigId>();\r
+\r
+ public int findToolChainConfigs(ToolChainConfigId sfi) {\r
+ for (int index = 0; index < vToolChainConfigs.size(); index++) {\r
+ if (vToolChainConfigs.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findToolChainConfigs(String name) {\r
+ for (int index = 0; index < vToolChainConfigs.size(); index++) {\r
+ if (vToolChainConfigs.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public ToolChainConfigId getToolChainConfigs(int index) {\r
+ if (index > -1) {\r
+ return vToolChainConfigs.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+ \r
+ public Vector<String> toStringVector(int index) {\r
+ Vector<String> v = new Vector<String>();\r
+ v.addElement(getToolChainConfigs(index).getName());\r
+ v.addElement(getToolChainConfigs(index).getValue());\r
+ return v;\r
+ }\r
+\r
+ public void addToolChainConfigs(ToolChainConfigId arg0) {\r
+ vToolChainConfigs.addElement(arg0);\r
+ }\r
+\r
+ public void updateToolChainConfigs(ToolChainConfigId arg0, int arg1) {\r
+ vToolChainConfigs.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removeToolChainConfigs(ToolChainConfigId arg0) {\r
+ int index = findToolChainConfigs(arg0);\r
+ if (index > -1) {\r
+ vToolChainConfigs.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removeToolChainConfigs(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vToolChainConfigs.removeElementAt(index);\r
+ }\r
+ }\r
+ \r
+ public void removeAll() {\r
+ vToolChainConfigs = new Vector<ToolChainConfigId>();\r
+ }\r
+\r
+ public Vector<String> getToolChainConfigsName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vToolChainConfigs.size(); index++) {\r
+ v.addElement(vToolChainConfigs.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+ \r
+ public Vector<String> getToolChainConfigsValue() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vToolChainConfigs.size(); index++) {\r
+ v.addElement(vToolChainConfigs.get(index).getValue());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vToolChainConfigs.size();\r
+ }\r
+\r
+ /**\r
+ \r
+ @param file\r
+ @throws IOException\r
+ @throws FileNotFoundException\r
+ \r
+ **/\r
+ public void parseFile(String file) throws IOException {\r
+ FileReader fr = new FileReader(file);\r
+ BufferedReader br = new BufferedReader(fr);\r
+ String line = br.readLine();\r
+ while (line != null) {\r
+ parseLine(line);\r
+ line = br.readLine();\r
+ }\r
+ }\r
+ \r
+ /**\r
+ Parse the input string and add name, value to vector \r
+ \r
+ @param line\r
+ \r
+ **/\r
+ private void parseLine(String line) {\r
+ String name = "";\r
+ String value = "";\r
+ if (line.indexOf(ToolChainConfigId.COMMENTS) != 0 && line.indexOf(ToolChainConfigId.EQUALS) > -1) {\r
+ name = line.substring(0, line.indexOf(ToolChainConfigId.EQUALS)).trim();\r
+ value = line.substring(line.indexOf(ToolChainConfigId.EQUALS) + 1).trim();\r
+ this.addToolChainConfigs(new ToolChainConfigId(name, value));\r
+ }\r
+ }\r
+}\r
}\r
}\r
}\r
- \r
+\r
/**\r
Get path only from a path\r
- \r
+ \r
@param filePath\r
@return\r
- \r
- **/\r
+ \r
+ **/\r
public static String getFilePathOnly(String filePath) {\r
String path = filePath.substring(0, filePath.length() - getFileNameOnly(filePath).length());\r
if (path.endsWith(DataType.FILE_SEPARATOR)) {\r
path = path.substring(0, path.length() - DataType.FILE_SEPARATOR.length());\r
}\r
- \r
+\r
return path;\r
}\r
- \r
- \r
+\r
/**\r
Get file name from a path\r
\r
@param filePath\r
@return\r
- \r
- **/\r
+ \r
+ **/\r
public static String getFileNameOnly(String filePath) {\r
File f = new File(filePath);\r
return f.getAbsoluteFile().getName();\r
}\r
- \r
+\r
public static String getFileNameWithoutExt(String filePath) {\r
filePath = getFileNameOnly(filePath);\r
filePath = filePath.substring(0, filePath.lastIndexOf(DataType.FILE_EXT_SEPARATOR));\r
}\r
return path;\r
}\r
- \r
+\r
/**\r
Show a message box\r
\r
@param arg0\r
- \r
- **/\r
+ \r
+ **/\r
public static void showInformationMessage(String arg0) {\r
JOptionPane.showConfirmDialog(null, arg0, "Error", JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE);\r
}\r
+ \r
+ /**\r
+ if the string doesn't end with a file separator, append it to the string\r
+ \r
+ @param arg0\r
+ @return\r
+ \r
+ **/\r
+ public static String addFileSeparator(String arg0) {\r
+ if (!arg0.endsWith(DataType.FILE_SEPARATOR)) {\r
+ arg0 = arg0 + DataType.FILE_SEPARATOR;\r
+ }\r
+ return arg0;\r
+ }\r
}\r
\r
import javax.swing.tree.DefaultMutableTreeNode;\r
\r
-import org.tianocore.frameworkwizard.common.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
\r
/**\r
The class is used to override DefaultMutableTreeNode to provides customized interfaces\r
import javax.swing.tree.TreeNode;\r
import javax.swing.tree.TreePath;\r
\r
-import org.tianocore.frameworkwizard.common.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
\r
/**\r
The class is used to override JTree to provides customized interfaces \r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.BootModes;\r
-\r
-import java.util.Vector;\r
-\r
-public class BootModesIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String usage = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private String help = null;\r
-\r
- public BootModesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.usage = (arg1 == null ? "" : arg1);\r
- this.featureFlag = (arg2 == null ? "" : arg2);\r
- this.supArchList = arg3;\r
- this.help = (arg4 == null ? "" : arg4);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(BootModesIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.BootModes;\r
-\r
-import java.util.Vector;\r
-\r
-public class BootModesVector {\r
-\r
- private Vector<BootModesIdentification> vBootModes = new Vector<BootModesIdentification>();\r
-\r
- public int findBootModes(BootModesIdentification sfi) {\r
- for (int index = 0; index < vBootModes.size(); index++) {\r
- if (vBootModes.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findBootModes(String name) {\r
- for (int index = 0; index < vBootModes.size(); index++) {\r
- if (vBootModes.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public BootModesIdentification getBootModes(int index) {\r
- if (index > -1) {\r
- return vBootModes.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addBootModes(BootModesIdentification arg0) {\r
- vBootModes.addElement(arg0);\r
- }\r
-\r
- public void updateBootModes(BootModesIdentification arg0, int arg1) {\r
- vBootModes.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removeBootModes(BootModesIdentification arg0) {\r
- int index = findBootModes(arg0);\r
- if (index > -1) {\r
- vBootModes.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removeBootModes(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vBootModes.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<BootModesIdentification> getvBootModes() {\r
- return vBootModes;\r
- }\r
-\r
- public void setvBootModes(Vector<BootModesIdentification> BootModes) {\r
- vBootModes = BootModes;\r
- }\r
-\r
- public Vector<String> getBootModesName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vBootModes.size(); index++) {\r
- v.addElement(vBootModes.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vBootModes.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.DataHubs;\r
-\r
-import java.util.Vector;\r
-\r
-public class DataHubsIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String usage = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private String help = null;\r
-\r
- public DataHubsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.usage = (arg1 == null ? "" : arg1);\r
- this.featureFlag = (arg2 == null ? "" : arg2);\r
- this.supArchList = arg3;\r
- this.help = (arg4 == null ? "" : arg4);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(DataHubsIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.DataHubs;\r
-\r
-import java.util.Vector;\r
-\r
-public class DataHubsVector {\r
-\r
- private Vector<DataHubsIdentification> vDataHubs = new Vector<DataHubsIdentification>();\r
-\r
- public int findDataHubs(DataHubsIdentification sfi) {\r
- for (int index = 0; index < vDataHubs.size(); index++) {\r
- if (vDataHubs.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findDataHubs(String name) {\r
- for (int index = 0; index < vDataHubs.size(); index++) {\r
- if (vDataHubs.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public DataHubsIdentification getDataHubs(int index) {\r
- if (index > -1) {\r
- return vDataHubs.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addDataHubs(DataHubsIdentification arg0) {\r
- vDataHubs.addElement(arg0);\r
- }\r
-\r
- public void updateDataHubs(DataHubsIdentification arg0, int arg1) {\r
- vDataHubs.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removeDataHubs(DataHubsIdentification arg0) {\r
- int index = findDataHubs(arg0);\r
- if (index > -1) {\r
- vDataHubs.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removeDataHubs(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vDataHubs.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<DataHubsIdentification> getvDataHubs() {\r
- return vDataHubs;\r
- }\r
-\r
- public void setvDataHubs(Vector<DataHubsIdentification> DataHubs) {\r
- vDataHubs = DataHubs;\r
- }\r
-\r
- public Vector<String> getDataHubsName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vDataHubs.size(); index++) {\r
- v.addElement(vDataHubs.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vDataHubs.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.Events;\r
-\r
-import java.util.Vector;\r
-\r
-public class EventsIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String type = null;\r
-\r
- private String usage = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private String help = null;\r
-\r
- public EventsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.type = (arg1 == null ? "" : arg1);\r
- this.usage = (arg2 == null ? "" : arg2);\r
- this.featureFlag = (arg3 == null ? "" : arg3);\r
- this.supArchList = arg4;\r
- this.help = (arg5 == null ? "" : arg5);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(EventsIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getType() {\r
- return type;\r
- }\r
-\r
- public void setType(String type) {\r
- this.type = type;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.Events;\r
-\r
-import java.util.Vector;\r
-\r
-public class EventsVector {\r
-\r
- private Vector<EventsIdentification> vEvents = new Vector<EventsIdentification>();\r
-\r
- public int findEvents(EventsIdentification sfi) {\r
- for (int index = 0; index < vEvents.size(); index++) {\r
- if (vEvents.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findEvents(String name) {\r
- for (int index = 0; index < vEvents.size(); index++) {\r
- if (vEvents.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public EventsIdentification getEvents(int index) {\r
- if (index > -1) {\r
- return vEvents.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addEvents(EventsIdentification arg0) {\r
- vEvents.addElement(arg0);\r
- }\r
-\r
- public void updateEvents(EventsIdentification arg0, int arg1) {\r
- vEvents.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removeEvents(EventsIdentification arg0) {\r
- int index = findEvents(arg0);\r
- if (index > -1) {\r
- vEvents.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removeEvents(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vEvents.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<EventsIdentification> getvEvents() {\r
- return vEvents;\r
- }\r
-\r
- public void setvEvents(Vector<EventsIdentification> Events) {\r
- vEvents = Events;\r
- }\r
-\r
- public Vector<String> getEventsName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vEvents.size(); index++) {\r
- v.addElement(vEvents.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vEvents.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.Externs;\r
-\r
-import java.util.Vector;\r
-\r
-public class ExternsIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String type = null;\r
- \r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
-\r
- public ExternsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.type = (arg1 == null ? "" : arg1);\r
- this.featureFlag = (arg2 == null ? "" : arg2);\r
- this.supArchList = arg3;\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(ExternsIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getType() {\r
- return type;\r
- }\r
-\r
- public void setType(String type) {\r
- this.type = type;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.Externs;\r
-\r
-import java.util.Vector;\r
-\r
-public class ExternsVector {\r
-\r
- private Vector<ExternsIdentification> vExterns = new Vector<ExternsIdentification>();\r
-\r
- public int findExterns(ExternsIdentification sfi) {\r
- for (int index = 0; index < vExterns.size(); index++) {\r
- if (vExterns.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findExterns(String name) {\r
- for (int index = 0; index < vExterns.size(); index++) {\r
- if (vExterns.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public ExternsIdentification getExterns(int index) {\r
- if (index > -1) {\r
- return vExterns.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addExterns(ExternsIdentification arg0) {\r
- vExterns.addElement(arg0);\r
- }\r
-\r
- public void updateExterns(ExternsIdentification arg0, int arg1) {\r
- vExterns.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removeExterns(ExternsIdentification arg0) {\r
- int index = findExterns(arg0);\r
- if (index > -1) {\r
- vExterns.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removeExterns(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vExterns.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<ExternsIdentification> getvExterns() {\r
- return vExterns;\r
- }\r
-\r
- public void setvExterns(Vector<ExternsIdentification> Externs) {\r
- vExterns = Externs;\r
- }\r
-\r
- public Vector<String> getExternsName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vExterns.size(); index++) {\r
- v.addElement(vExterns.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vExterns.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.Guids;\r
-\r
-import java.util.Vector;\r
-\r
-public class GuidsIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String usage = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private String help = null;\r
-\r
- public GuidsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.usage = (arg1 == null ? "" : arg1);\r
- this.featureFlag = (arg2 == null ? "" : arg2);\r
- this.supArchList = arg3;\r
- this.help = (arg4 == null ? "" : arg4);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(GuidsIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.Guids;\r
-\r
-import java.util.Vector;\r
-\r
-public class GuidsVector {\r
-\r
- private Vector<GuidsIdentification> vGuids = new Vector<GuidsIdentification>();\r
-\r
- public int findGuids(GuidsIdentification sfi) {\r
- for (int index = 0; index < vGuids.size(); index++) {\r
- if (vGuids.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findGuids(String name) {\r
- for (int index = 0; index < vGuids.size(); index++) {\r
- if (vGuids.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public GuidsIdentification getGuids(int index) {\r
- if (index > -1) {\r
- return vGuids.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addGuids(GuidsIdentification arg0) {\r
- vGuids.addElement(arg0);\r
- }\r
-\r
- public void updateGuids(GuidsIdentification arg0, int arg1) {\r
- vGuids.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removeGuids(GuidsIdentification arg0) {\r
- int index = findGuids(arg0);\r
- if (index > -1) {\r
- vGuids.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removeGuids(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vGuids.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<GuidsIdentification> getvGuids() {\r
- return vGuids;\r
- }\r
-\r
- public void setvGuids(Vector<GuidsIdentification> Guids) {\r
- vGuids = Guids;\r
- }\r
-\r
- public Vector<String> getGuidsName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vGuids.size(); index++) {\r
- v.addElement(vGuids.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vGuids.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.HiiPackages;\r
-\r
-import java.util.Vector;\r
-\r
-public class HiiPackagesIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String usage = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private String help = null;\r
-\r
- public HiiPackagesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.usage = (arg1 == null ? "" : arg1);\r
- this.featureFlag = (arg2 == null ? "" : arg2);\r
- this.supArchList = arg3;\r
- this.help = (arg4 == null ? "" : arg4);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(HiiPackagesIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.HiiPackages;\r
-\r
-import java.util.Vector;\r
-\r
-public class HiiPackagesVector {\r
-\r
- private Vector<HiiPackagesIdentification> vHiiPackages = new Vector<HiiPackagesIdentification>();\r
-\r
- public int findHiiPackages(HiiPackagesIdentification sfi) {\r
- for (int index = 0; index < vHiiPackages.size(); index++) {\r
- if (vHiiPackages.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findHiiPackages(String name) {\r
- for (int index = 0; index < vHiiPackages.size(); index++) {\r
- if (vHiiPackages.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public HiiPackagesIdentification getHiiPackages(int index) {\r
- if (index > -1) {\r
- return vHiiPackages.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addHiiPackages(HiiPackagesIdentification arg0) {\r
- vHiiPackages.addElement(arg0);\r
- }\r
-\r
- public void updateHiiPackages(HiiPackagesIdentification arg0, int arg1) {\r
- vHiiPackages.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removeHiiPackages(HiiPackagesIdentification arg0) {\r
- int index = findHiiPackages(arg0);\r
- if (index > -1) {\r
- vHiiPackages.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removeHiiPackages(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vHiiPackages.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<HiiPackagesIdentification> getvHiiPackages() {\r
- return vHiiPackages;\r
- }\r
-\r
- public void setvHiiPackages(Vector<HiiPackagesIdentification> HiiPackages) {\r
- vHiiPackages = HiiPackages;\r
- }\r
-\r
- public Vector<String> getHiiPackagesName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vHiiPackages.size(); index++) {\r
- v.addElement(vHiiPackages.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vHiiPackages.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.Hobs;\r
-\r
-import java.util.Vector;\r
-\r
-public class HobsIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String type = null;\r
-\r
- private String usage = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private String help = null;\r
-\r
- public HobsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.type = (arg1 == null ? "" : arg1);\r
- this.usage = (arg2 == null ? "" : arg2);\r
- this.featureFlag = (arg3 == null ? "" : arg3);\r
- this.supArchList = arg4;\r
- this.help = (arg5 == null ? "" : arg5);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(HobsIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getType() {\r
- return type;\r
- }\r
-\r
- public void setType(String type) {\r
- this.type = type;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.Hobs;\r
-\r
-import java.util.Vector;\r
-\r
-public class HobsVector {\r
-\r
- private Vector<HobsIdentification> vHobs = new Vector<HobsIdentification>();\r
-\r
- public int findHobs(HobsIdentification sfi) {\r
- for (int index = 0; index < vHobs.size(); index++) {\r
- if (vHobs.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findHobs(String name) {\r
- for (int index = 0; index < vHobs.size(); index++) {\r
- if (vHobs.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public HobsIdentification getHobs(int index) {\r
- if (index > -1) {\r
- return vHobs.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addHobs(HobsIdentification arg0) {\r
- vHobs.addElement(arg0);\r
- }\r
-\r
- public void updateHobs(HobsIdentification arg0, int arg1) {\r
- vHobs.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removeHobs(HobsIdentification arg0) {\r
- int index = findHobs(arg0);\r
- if (index > -1) {\r
- vHobs.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removeHobs(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vHobs.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<HobsIdentification> getvHobs() {\r
- return vHobs;\r
- }\r
-\r
- public void setvHobs(Vector<HobsIdentification> Hobs) {\r
- vHobs = Hobs;\r
- }\r
-\r
- public Vector<String> getHobsName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vHobs.size(); index++) {\r
- v.addElement(vHobs.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vHobs.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Library Class Identification\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.Identification.LibraryClass;\r
-\r
-import java.util.Vector;\r
-\r
-public class LibraryClassIdentification {\r
- private String libraryClassName = null;\r
-\r
- private String usage = null;\r
-\r
- private String recommendedInstanceVersion = null;\r
-\r
- private String recommendedInstanceGuid = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private Vector<String> supModuleList = null;\r
- \r
- private String help = null;\r
-\r
- public LibraryClassIdentification() {\r
-\r
- }\r
-\r
- public LibraryClassIdentification(String strName, String strUsage, String strRecommendedInstanceVersion,\r
- String strRecommendedInstanceGuid, Vector<String> vSupArchList,\r
- String strFeatureFlag, Vector<String> vSupModuleList, String strHelp) {\r
- this.libraryClassName = (strName == null ? "" : strName);\r
- this.usage = (strUsage == null ? "" : strUsage);\r
- this.recommendedInstanceVersion = (strRecommendedInstanceVersion == null ? "" : strRecommendedInstanceVersion);\r
- this.recommendedInstanceGuid = (strRecommendedInstanceGuid == null ? "" : strRecommendedInstanceGuid);\r
- this.supArchList = vSupArchList;\r
- this.featureFlag = (strFeatureFlag == null ? "" : strFeatureFlag);\r
- this.supModuleList = vSupModuleList;\r
- this.help = (strHelp == null ? "" : strHelp);\r
- }\r
-\r
- public String getLibraryClassName() {\r
- return libraryClassName;\r
- }\r
-\r
- public void setLibraryClassName(String libraryClassName) {\r
- this.libraryClassName = libraryClassName;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getRecommendedInstanceGuid() {\r
- return recommendedInstanceGuid;\r
- }\r
-\r
- public void setRecommendedInstanceGuid(String recommendedInstanceGuid) {\r
- this.recommendedInstanceGuid = recommendedInstanceGuid;\r
- }\r
-\r
- public String getRecommendedInstanceVersion() {\r
- return recommendedInstanceVersion;\r
- }\r
-\r
- public void setRecommendedInstanceVersion(String recommendedInstanceVersion) {\r
- this.recommendedInstanceVersion = recommendedInstanceVersion;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(LibraryClassIdentification lib) {\r
- if (this.libraryClassName.equals(lib.libraryClassName) && this.usage.equals(lib.getUsage())) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public Vector<String> getSupModuleList() {\r
- return supModuleList;\r
- }\r
-\r
- public void setSupModuleList(Vector<String> supModuleList) {\r
- this.supModuleList = supModuleList;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @file\r
- \r
- The file is used to define Library Class 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.Identification.LibraryClass;\r
-\r
-import java.util.Vector;\r
-\r
-\r
-public class LibraryClassVector {\r
- private Vector<LibraryClassIdentification> vLibraryClass = new Vector<LibraryClassIdentification>();\r
- \r
- public int findLibraryClass(LibraryClassIdentification lib) {\r
- for (int index = 0; index < vLibraryClass.size(); index++) {\r
- if (vLibraryClass.elementAt(index).equals(lib)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
- \r
- public int findLibraryClass(String name) {\r
- for (int index = 0; index < vLibraryClass.size(); index++) {\r
- if (vLibraryClass.elementAt(index).getLibraryClassName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
- \r
- public LibraryClassIdentification getLibraryClass(int index) {\r
- if (index > -1) {\r
- return vLibraryClass.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
- \r
- public void addLibraryClass(LibraryClassIdentification lib) {\r
- vLibraryClass.addElement(lib);\r
- }\r
- \r
- public void updateLibraryClass(LibraryClassIdentification lib, int index) {\r
- vLibraryClass.setElementAt(lib, index);\r
- }\r
- \r
- public void removeLibraryClass(LibraryClassIdentification lib) {\r
- int index = findLibraryClass(lib);\r
- if (index > -1) {\r
- vLibraryClass.removeElementAt(index);\r
- }\r
- }\r
- \r
- public void removeLibraryClass(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vLibraryClass.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<LibraryClassIdentification> getVLibraryClass() {\r
- return vLibraryClass;\r
- }\r
-\r
- public void setVLibraryClass(Vector<LibraryClassIdentification> libraryClass) {\r
- vLibraryClass = libraryClass;\r
- }\r
- \r
- public Vector<String> getLibraryClassName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vLibraryClass.size(); index++) {\r
- v.addElement(vLibraryClass.get(index).getLibraryClassName());\r
- }\r
- return v;\r
- }\r
- \r
- public int size() {\r
- return this.vLibraryClass.size();\r
- }\r
-}\r
+++ /dev/null
-/** @file\r
- \r
- The file is used to save basic information of module\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.Identification;\r
-\r
-\r
-import org.tianocore.frameworkwizard.common.Identification;\r
-import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
-\r
-public class ModuleIdentification extends Identification {\r
- \r
- private PackageIdentification packageId;\r
- \r
- public ModuleIdentification(String name, String guid, String version, String path) {\r
- super(name, guid, version, path);\r
- }\r
- \r
- public ModuleIdentification(Identification id) {\r
- super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
- }\r
- \r
- public ModuleIdentification(String name, String guid, String version, String path, PackageIdentification packageId){\r
- super(name, guid, version, path);\r
- this.packageId = packageId;\r
- }\r
- \r
- public ModuleIdentification(Identification id, PackageIdentification packageId) {\r
- super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
- this.packageId = packageId;\r
- }\r
- \r
-// public boolean equals(Object obj) {\r
-// if (obj instanceof Identification) {\r
-// Identification id = (Identification)obj;\r
-// if ( this.getName().equalsIgnoreCase(id.getName())) {\r
-// return true;\r
-// }\r
-// // and package is the same one\r
-// return false;\r
-// }\r
-// else {\r
-// return super.equals(obj);\r
-// }\r
-// }\r
- \r
- public String toString(){\r
- return "Module " + this.getName() + "[" + this.getGuid() + "] in package " + packageId;\r
- }\r
-\r
- public PackageIdentification getPackageId() {\r
- return packageId;\r
- }\r
-\r
- public void setPackageId(PackageIdentification packageId) {\r
- this.packageId = packageId;\r
- }\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.PackageDependencies;\r
-\r
-import java.util.Vector;\r
-\r
-public class PackageDependenciesIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String version = null;\r
-\r
- private String guid = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
-\r
- public PackageDependenciesIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.version = (arg1 == null ? "" : arg1);\r
- this.guid = (arg2 == null ? "" : arg2);\r
- this.featureFlag = (arg3 == null ? "" : arg3);\r
- this.supArchList = arg4;\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getGuid() {\r
- return guid;\r
- }\r
-\r
- public void setGuid(String guid) {\r
- this.guid = guid;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
-\r
- public String getVersion() {\r
- return version;\r
- }\r
-\r
- public void setVersion(String version) {\r
- this.version = version;\r
- }\r
- \r
- public boolean equals(PackageDependenciesIdentification pdi) {\r
- if (this.guid.equals(pdi.guid)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.PackageDependencies;\r
-\r
-import java.util.Vector;\r
-\r
-public class PackageDependenciesVector {\r
-\r
- private Vector<PackageDependenciesIdentification> vPackageDependencies = new Vector<PackageDependenciesIdentification>();\r
-\r
- public int findPackageDependencies(PackageDependenciesIdentification sfi) {\r
- for (int index = 0; index < vPackageDependencies.size(); index++) {\r
- if (vPackageDependencies.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findPackageDependencies(String name) {\r
- for (int index = 0; index < vPackageDependencies.size(); index++) {\r
- if (vPackageDependencies.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public PackageDependenciesIdentification getPackageDependencies(int index) {\r
- if (index > -1) {\r
- return vPackageDependencies.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addPackageDependencies(PackageDependenciesIdentification arg0) {\r
- vPackageDependencies.addElement(arg0);\r
- }\r
-\r
- public void updatePackageDependencies(PackageDependenciesIdentification arg0, int arg1) {\r
- vPackageDependencies.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removePackageDependencies(PackageDependenciesIdentification arg0) {\r
- int index = findPackageDependencies(arg0);\r
- if (index > -1) {\r
- vPackageDependencies.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removePackageDependencies(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vPackageDependencies.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<PackageDependenciesIdentification> getvPackageDependencies() {\r
- return vPackageDependencies;\r
- }\r
-\r
- public void setvPackageDependencies(Vector<PackageDependenciesIdentification> PackageDependencies) {\r
- vPackageDependencies = PackageDependencies;\r
- }\r
-\r
- public Vector<String> getPackageDependenciesName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vPackageDependencies.size(); index++) {\r
- v.addElement(vPackageDependencies.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vPackageDependencies.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.PcdCoded;\r
-\r
-import java.util.Vector;\r
-\r
-public class PcdCodedIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String guid = null;\r
- \r
- private String featureFlag = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String value = null;\r
- \r
- private String help = null;\r
- \r
- private String type = null;\r
-\r
- public PcdCodedIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4, String arg5, String arg6) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.guid = (arg1 == null ? "" : arg1);\r
- this.featureFlag = (arg2 == null ? "" : arg2);\r
- this.supArchList = arg3;\r
- this.value = (arg4 == null ? "" : arg4);\r
- this.help = (arg5 == null ? "" : arg5);\r
- this.type = (arg6 == null ? "" : arg6);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(PcdCodedIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getGuid() {\r
- return guid;\r
- }\r
-\r
- public void setGuid(String guid) {\r
- this.guid = guid;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-\r
- public String getType() {\r
- return type;\r
- }\r
-\r
- public void setType(String type) {\r
- this.type = type;\r
- }\r
-\r
- public String getValue() {\r
- return value;\r
- }\r
-\r
- public void setValue(String value) {\r
- this.value = value;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.PcdCoded;\r
-\r
-import java.util.Vector;\r
-\r
-public class PcdCodedVector {\r
-\r
- private Vector<PcdCodedIdentification> vPcdCoded = new Vector<PcdCodedIdentification>();\r
-\r
- public int findPcdCoded(PcdCodedIdentification sfi) {\r
- for (int index = 0; index < vPcdCoded.size(); index++) {\r
- if (vPcdCoded.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findPcdCoded(String name) {\r
- for (int index = 0; index < vPcdCoded.size(); index++) {\r
- if (vPcdCoded.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public PcdCodedIdentification getPcdCoded(int index) {\r
- if (index > -1) {\r
- return vPcdCoded.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addPcdCoded(PcdCodedIdentification arg0) {\r
- vPcdCoded.addElement(arg0);\r
- }\r
-\r
- public void updatePcdCoded(PcdCodedIdentification arg0, int arg1) {\r
- vPcdCoded.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removePcdCoded(PcdCodedIdentification arg0) {\r
- int index = findPcdCoded(arg0);\r
- if (index > -1) {\r
- vPcdCoded.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removePcdCoded(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vPcdCoded.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<PcdCodedIdentification> getvPcdCoded() {\r
- return vPcdCoded;\r
- }\r
-\r
- public void setvPcdCoded(Vector<PcdCodedIdentification> PcdCoded) {\r
- vPcdCoded = PcdCoded;\r
- }\r
-\r
- public Vector<String> getPcdCodedName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vPcdCoded.size(); index++) {\r
- v.addElement(vPcdCoded.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vPcdCoded.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.Ppis;\r
-\r
-import java.util.Vector;\r
-\r
-public class PpisIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String type = null;\r
-\r
- private String usage = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private String help = null;\r
-\r
- public PpisIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.type = (arg1 == null ? "" : arg1);\r
- this.usage = (arg2 == null ? "" : arg2);\r
- this.featureFlag = (arg3 == null ? "" : arg3);\r
- this.supArchList = arg4;\r
- this.help = (arg5 == null ? "" : arg5);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(PpisIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getType() {\r
- return type;\r
- }\r
-\r
- public void setType(String type) {\r
- this.type = type;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.Ppis;\r
-\r
-import java.util.Vector;\r
-\r
-public class PpisVector {\r
-\r
- private Vector<PpisIdentification> vPpis = new Vector<PpisIdentification>();\r
-\r
- public int findPpis(PpisIdentification sfi) {\r
- for (int index = 0; index < vPpis.size(); index++) {\r
- if (vPpis.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findPpis(String name) {\r
- for (int index = 0; index < vPpis.size(); index++) {\r
- if (vPpis.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public PpisIdentification getPpis(int index) {\r
- if (index > -1) {\r
- return vPpis.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addPpis(PpisIdentification arg0) {\r
- vPpis.addElement(arg0);\r
- }\r
-\r
- public void updatePpis(PpisIdentification arg0, int arg1) {\r
- vPpis.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removePpis(PpisIdentification arg0) {\r
- int index = findPpis(arg0);\r
- if (index > -1) {\r
- vPpis.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removePpis(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vPpis.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<PpisIdentification> getvPpis() {\r
- return vPpis;\r
- }\r
-\r
- public void setvPpis(Vector<PpisIdentification> Ppis) {\r
- vPpis = Ppis;\r
- }\r
-\r
- public Vector<String> getPpisName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vPpis.size(); index++) {\r
- v.addElement(vPpis.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vPpis.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.Protocols;\r
-\r
-import java.util.Vector;\r
-\r
-public class ProtocolsIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String type = null;\r
-\r
- private String usage = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private String help = null;\r
-\r
- public ProtocolsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.type = (arg1 == null ? "" : arg1);\r
- this.usage = (arg2 == null ? "" : arg2);\r
- this.featureFlag = (arg3 == null ? "" : arg3);\r
- this.supArchList = arg4;\r
- this.help = (arg5 == null ? "" : arg5);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(ProtocolsIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getType() {\r
- return type;\r
- }\r
-\r
- public void setType(String type) {\r
- this.type = type;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.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 updateProtocols(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
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Source Files Identification\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.Identification.SourceFiles;\r
-\r
-import java.util.Vector;\r
-\r
-public class SourceFilesIdentification {\r
-\r
- private String filename = null;\r
-\r
- private String tagName = null;\r
- \r
- private String toolCode = null;\r
- \r
- private String toolChainFamily = null;\r
- \r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
-\r
- public SourceFilesIdentification(String strFilename, String strTagName, String strToolCode, String strToolChainFamily,\r
- String strFeatureFlag, Vector<String> arch) {\r
- this.filename = (strFilename == null ? "" : strFilename);\r
- this.tagName = (strTagName == null ? "" : strTagName);\r
- this.toolCode = (strToolCode == null ? "" : strToolCode);\r
- this.toolChainFamily = (strToolChainFamily == null ? "" : strToolChainFamily);\r
- this.featureFlag = (strFeatureFlag == null ? "" : strFeatureFlag);\r
- this.supArchList = arch;\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getFilename() {\r
- return filename;\r
- }\r
-\r
- public void setFilename(String filename) {\r
- this.filename = filename;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
-\r
- public String getTagName() {\r
- return tagName;\r
- }\r
-\r
- public void setTagName(String tagName) {\r
- this.tagName = tagName;\r
- }\r
-\r
- public String getToolChainFamily() {\r
- return toolChainFamily;\r
- }\r
-\r
- public void setToolChainFamily(String toolChainFamily) {\r
- this.toolChainFamily = toolChainFamily;\r
- }\r
-\r
- public String getToolCode() {\r
- return toolCode;\r
- }\r
-\r
- public void setToolCode(String toolCode) {\r
- this.toolCode = toolCode;\r
- }\r
- \r
- public boolean equals(SourceFilesIdentification sfid) {\r
- if (this.filename.equals(sfid.filename)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.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
- vSourceFiles.addElement(sfi);\r
- }\r
-\r
- public void updateSourceFiles(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
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.SystemTables;\r
-\r
-import java.util.Vector;\r
-\r
-public class SystemTablesIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String usage = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private String help = null;\r
-\r
- public SystemTablesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.usage = (arg1 == null ? "" : arg1);\r
- this.featureFlag = (arg2 == null ? "" : arg2);\r
- this.supArchList = arg3;\r
- this.help = (arg4 == null ? "" : arg4);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(SystemTablesIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.SystemTables;\r
-\r
-import java.util.Vector;\r
-\r
-public class SystemTablesVector {\r
-\r
- private Vector<SystemTablesIdentification> vSystemTables = new Vector<SystemTablesIdentification>();\r
-\r
- public int findSystemTables(SystemTablesIdentification sfi) {\r
- for (int index = 0; index < vSystemTables.size(); index++) {\r
- if (vSystemTables.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findSystemTables(String name) {\r
- for (int index = 0; index < vSystemTables.size(); index++) {\r
- if (vSystemTables.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public SystemTablesIdentification getSystemTables(int index) {\r
- if (index > -1) {\r
- return vSystemTables.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addSystemTables(SystemTablesIdentification arg0) {\r
- vSystemTables.addElement(arg0);\r
- }\r
-\r
- public void updateSystemTables(SystemTablesIdentification arg0, int arg1) {\r
- vSystemTables.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removeSystemTables(SystemTablesIdentification arg0) {\r
- int index = findSystemTables(arg0);\r
- if (index > -1) {\r
- vSystemTables.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removeSystemTables(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vSystemTables.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<SystemTablesIdentification> getvSystemTables() {\r
- return vSystemTables;\r
- }\r
-\r
- public void setvSystemTables(Vector<SystemTablesIdentification> SystemTables) {\r
- vSystemTables = SystemTables;\r
- }\r
-\r
- public Vector<String> getSystemTablesName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vSystemTables.size(); index++) {\r
- v.addElement(vSystemTables.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vSystemTables.size();\r
- }\r
-\r
-}\r
+++ /dev/null
-/** @file\r
-\r
- The file is used to define Package Dependencies Identification\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.Identification.Variables;\r
-\r
-import java.util.Vector;\r
-\r
-public class VariablesIdentification {\r
-\r
- //\r
- // Define class members\r
- //\r
- private String name = null;\r
-\r
- private String guid = null;\r
-\r
- private String usage = null;\r
-\r
- private Vector<String> supArchList = null;\r
-\r
- private String featureFlag = null;\r
- \r
- private String help = null;\r
-\r
- public VariablesIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
- this.name = (arg0 == null ? "" : arg0);\r
- this.guid = (arg1 == null ? "" : arg1);\r
- this.usage = (arg2 == null ? "" : arg2);\r
- this.featureFlag = (arg3 == null ? "" : arg3);\r
- this.supArchList = arg4;\r
- this.help = (arg5 == null ? "" : arg5);\r
- }\r
-\r
- public String getFeatureFlag() {\r
- return featureFlag;\r
- }\r
-\r
- public void setFeatureFlag(String featureFlag) {\r
- this.featureFlag = featureFlag;\r
- }\r
-\r
- public String getName() {\r
- return name;\r
- }\r
-\r
- public void setName(String name) {\r
- this.name = name;\r
- }\r
-\r
- public Vector<String> getSupArchList() {\r
- return supArchList;\r
- }\r
-\r
- public void setSupArchList(Vector<String> supArchList) {\r
- this.supArchList = supArchList;\r
- }\r
- \r
- public boolean equals(VariablesIdentification pi) {\r
- if (this.name.equals(pi.name)) {\r
- return true;\r
- }\r
- return false;\r
- }\r
-\r
- public String getUsage() {\r
- return usage;\r
- }\r
-\r
- public void setUsage(String usage) {\r
- this.usage = usage;\r
- }\r
-\r
- public String getGuid() {\r
- return guid;\r
- }\r
-\r
- public void setGuid(String guid) {\r
- this.guid = guid;\r
- }\r
-\r
- public String getHelp() {\r
- return help;\r
- }\r
-\r
- public void setHelp(String help) {\r
- this.help = help;\r
- }\r
-}\r
+++ /dev/null
-/** @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.Identification.Variables;\r
-\r
-import java.util.Vector;\r
-\r
-public class VariablesVector {\r
-\r
- private Vector<VariablesIdentification> vVariables = new Vector<VariablesIdentification>();\r
-\r
- public int findVariables(VariablesIdentification sfi) {\r
- for (int index = 0; index < vVariables.size(); index++) {\r
- if (vVariables.elementAt(index).equals(sfi)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public int findVariables(String name) {\r
- for (int index = 0; index < vVariables.size(); index++) {\r
- if (vVariables.elementAt(index).getName().equals(name)) {\r
- return index;\r
- }\r
- }\r
- return -1;\r
- }\r
-\r
- public VariablesIdentification getVariables(int index) {\r
- if (index > -1) {\r
- return vVariables.elementAt(index);\r
- } else {\r
- return null;\r
- }\r
- }\r
-\r
- public void addVariables(VariablesIdentification arg0) {\r
- vVariables.addElement(arg0);\r
- }\r
-\r
- public void updateVariables(VariablesIdentification arg0, int arg1) {\r
- vVariables.setElementAt(arg0, arg1);\r
- }\r
-\r
- public void removeVariables(VariablesIdentification arg0) {\r
- int index = findVariables(arg0);\r
- if (index > -1) {\r
- vVariables.removeElementAt(index);\r
- }\r
- }\r
-\r
- public void removeVariables(int index) {\r
- if (index > -1 && index < this.size()) {\r
- vVariables.removeElementAt(index);\r
- }\r
- }\r
-\r
- public Vector<VariablesIdentification> getvVariables() {\r
- return vVariables;\r
- }\r
-\r
- public void setvVariables(Vector<VariablesIdentification> Variables) {\r
- vVariables = Variables;\r
- }\r
-\r
- public Vector<String> getVariablesName() {\r
- Vector<String> v = new Vector<String>();\r
- for (int index = 0; index < this.vVariables.size(); index++) {\r
- v.addElement(vVariables.get(index).getName());\r
- }\r
- return v;\r
- }\r
-\r
- public int size() {\r
- return this.vVariables.size();\r
- }\r
-\r
-}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.BootModes;\r
+\r
+import java.util.Vector;\r
+\r
+public class BootModesIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String usage = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private String help = null;\r
+\r
+ public BootModesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.usage = (arg1 == null ? "" : arg1);\r
+ this.featureFlag = (arg2 == null ? "" : arg2);\r
+ this.supArchList = arg3;\r
+ this.help = (arg4 == null ? "" : arg4);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(BootModesIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @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.BootModes;\r
+\r
+import java.util.Vector;\r
+\r
+public class BootModesVector {\r
+\r
+ private Vector<BootModesIdentification> vBootModes = new Vector<BootModesIdentification>();\r
+\r
+ public int findBootModes(BootModesIdentification sfi) {\r
+ for (int index = 0; index < vBootModes.size(); index++) {\r
+ if (vBootModes.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findBootModes(String name) {\r
+ for (int index = 0; index < vBootModes.size(); index++) {\r
+ if (vBootModes.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public BootModesIdentification getBootModes(int index) {\r
+ if (index > -1) {\r
+ return vBootModes.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addBootModes(BootModesIdentification arg0) {\r
+ vBootModes.addElement(arg0);\r
+ }\r
+\r
+ public void updateBootModes(BootModesIdentification arg0, int arg1) {\r
+ vBootModes.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removeBootModes(BootModesIdentification arg0) {\r
+ int index = findBootModes(arg0);\r
+ if (index > -1) {\r
+ vBootModes.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removeBootModes(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vBootModes.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<BootModesIdentification> getvBootModes() {\r
+ return vBootModes;\r
+ }\r
+\r
+ public void setvBootModes(Vector<BootModesIdentification> BootModes) {\r
+ vBootModes = BootModes;\r
+ }\r
+\r
+ public Vector<String> getBootModesName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vBootModes.size(); index++) {\r
+ v.addElement(vBootModes.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vBootModes.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.DataHubs;\r
+\r
+import java.util.Vector;\r
+\r
+public class DataHubsIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String usage = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private String help = null;\r
+\r
+ public DataHubsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.usage = (arg1 == null ? "" : arg1);\r
+ this.featureFlag = (arg2 == null ? "" : arg2);\r
+ this.supArchList = arg3;\r
+ this.help = (arg4 == null ? "" : arg4);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(DataHubsIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @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.DataHubs;\r
+\r
+import java.util.Vector;\r
+\r
+public class DataHubsVector {\r
+\r
+ private Vector<DataHubsIdentification> vDataHubs = new Vector<DataHubsIdentification>();\r
+\r
+ public int findDataHubs(DataHubsIdentification sfi) {\r
+ for (int index = 0; index < vDataHubs.size(); index++) {\r
+ if (vDataHubs.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findDataHubs(String name) {\r
+ for (int index = 0; index < vDataHubs.size(); index++) {\r
+ if (vDataHubs.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public DataHubsIdentification getDataHubs(int index) {\r
+ if (index > -1) {\r
+ return vDataHubs.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addDataHubs(DataHubsIdentification arg0) {\r
+ vDataHubs.addElement(arg0);\r
+ }\r
+\r
+ public void updateDataHubs(DataHubsIdentification arg0, int arg1) {\r
+ vDataHubs.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removeDataHubs(DataHubsIdentification arg0) {\r
+ int index = findDataHubs(arg0);\r
+ if (index > -1) {\r
+ vDataHubs.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removeDataHubs(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vDataHubs.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<DataHubsIdentification> getvDataHubs() {\r
+ return vDataHubs;\r
+ }\r
+\r
+ public void setvDataHubs(Vector<DataHubsIdentification> DataHubs) {\r
+ vDataHubs = DataHubs;\r
+ }\r
+\r
+ public Vector<String> getDataHubsName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vDataHubs.size(); index++) {\r
+ v.addElement(vDataHubs.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vDataHubs.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.Events;\r
+\r
+import java.util.Vector;\r
+\r
+public class EventsIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String type = null;\r
+\r
+ private String usage = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private String help = null;\r
+\r
+ public EventsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.type = (arg1 == null ? "" : arg1);\r
+ this.usage = (arg2 == null ? "" : arg2);\r
+ this.featureFlag = (arg3 == null ? "" : arg3);\r
+ this.supArchList = arg4;\r
+ this.help = (arg5 == null ? "" : arg5);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(EventsIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getType() {\r
+ return type;\r
+ }\r
+\r
+ public void setType(String type) {\r
+ this.type = type;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @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.Events;\r
+\r
+import java.util.Vector;\r
+\r
+public class EventsVector {\r
+\r
+ private Vector<EventsIdentification> vEvents = new Vector<EventsIdentification>();\r
+\r
+ public int findEvents(EventsIdentification sfi) {\r
+ for (int index = 0; index < vEvents.size(); index++) {\r
+ if (vEvents.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findEvents(String name) {\r
+ for (int index = 0; index < vEvents.size(); index++) {\r
+ if (vEvents.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public EventsIdentification getEvents(int index) {\r
+ if (index > -1) {\r
+ return vEvents.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addEvents(EventsIdentification arg0) {\r
+ vEvents.addElement(arg0);\r
+ }\r
+\r
+ public void updateEvents(EventsIdentification arg0, int arg1) {\r
+ vEvents.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removeEvents(EventsIdentification arg0) {\r
+ int index = findEvents(arg0);\r
+ if (index > -1) {\r
+ vEvents.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removeEvents(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vEvents.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<EventsIdentification> getvEvents() {\r
+ return vEvents;\r
+ }\r
+\r
+ public void setvEvents(Vector<EventsIdentification> Events) {\r
+ vEvents = Events;\r
+ }\r
+\r
+ public Vector<String> getEventsName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vEvents.size(); index++) {\r
+ v.addElement(vEvents.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vEvents.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.Externs;\r
+\r
+import java.util.Vector;\r
+\r
+public class ExternsIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String type = null;\r
+ \r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+\r
+ public ExternsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.type = (arg1 == null ? "" : arg1);\r
+ this.featureFlag = (arg2 == null ? "" : arg2);\r
+ this.supArchList = arg3;\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(ExternsIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getType() {\r
+ return type;\r
+ }\r
+\r
+ public void setType(String type) {\r
+ this.type = type;\r
+ }\r
+}\r
--- /dev/null
+/** @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.Externs;\r
+\r
+import java.util.Vector;\r
+\r
+public class ExternsVector {\r
+\r
+ private Vector<ExternsIdentification> vExterns = new Vector<ExternsIdentification>();\r
+\r
+ public int findExterns(ExternsIdentification sfi) {\r
+ for (int index = 0; index < vExterns.size(); index++) {\r
+ if (vExterns.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findExterns(String name) {\r
+ for (int index = 0; index < vExterns.size(); index++) {\r
+ if (vExterns.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public ExternsIdentification getExterns(int index) {\r
+ if (index > -1) {\r
+ return vExterns.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addExterns(ExternsIdentification arg0) {\r
+ vExterns.addElement(arg0);\r
+ }\r
+\r
+ public void updateExterns(ExternsIdentification arg0, int arg1) {\r
+ vExterns.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removeExterns(ExternsIdentification arg0) {\r
+ int index = findExterns(arg0);\r
+ if (index > -1) {\r
+ vExterns.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removeExterns(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vExterns.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<ExternsIdentification> getvExterns() {\r
+ return vExterns;\r
+ }\r
+\r
+ public void setvExterns(Vector<ExternsIdentification> Externs) {\r
+ vExterns = Externs;\r
+ }\r
+\r
+ public Vector<String> getExternsName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vExterns.size(); index++) {\r
+ v.addElement(vExterns.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vExterns.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.Guids;\r
+\r
+import java.util.Vector;\r
+\r
+public class GuidsIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String usage = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private String help = null;\r
+\r
+ public GuidsIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.usage = (arg1 == null ? "" : arg1);\r
+ this.featureFlag = (arg2 == null ? "" : arg2);\r
+ this.supArchList = arg3;\r
+ this.help = (arg4 == null ? "" : arg4);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(GuidsIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @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.Guids;\r
+\r
+import java.util.Vector;\r
+\r
+public class GuidsVector {\r
+\r
+ private Vector<GuidsIdentification> vGuids = new Vector<GuidsIdentification>();\r
+\r
+ public int findGuids(GuidsIdentification sfi) {\r
+ for (int index = 0; index < vGuids.size(); index++) {\r
+ if (vGuids.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findGuids(String name) {\r
+ for (int index = 0; index < vGuids.size(); index++) {\r
+ if (vGuids.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public GuidsIdentification getGuids(int index) {\r
+ if (index > -1) {\r
+ return vGuids.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addGuids(GuidsIdentification arg0) {\r
+ vGuids.addElement(arg0);\r
+ }\r
+\r
+ public void updateGuids(GuidsIdentification arg0, int arg1) {\r
+ vGuids.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removeGuids(GuidsIdentification arg0) {\r
+ int index = findGuids(arg0);\r
+ if (index > -1) {\r
+ vGuids.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removeGuids(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vGuids.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<GuidsIdentification> getvGuids() {\r
+ return vGuids;\r
+ }\r
+\r
+ public void setvGuids(Vector<GuidsIdentification> Guids) {\r
+ vGuids = Guids;\r
+ }\r
+\r
+ public Vector<String> getGuidsName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vGuids.size(); index++) {\r
+ v.addElement(vGuids.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vGuids.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.HiiPackages;\r
+\r
+import java.util.Vector;\r
+\r
+public class HiiPackagesIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String usage = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private String help = null;\r
+\r
+ public HiiPackagesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.usage = (arg1 == null ? "" : arg1);\r
+ this.featureFlag = (arg2 == null ? "" : arg2);\r
+ this.supArchList = arg3;\r
+ this.help = (arg4 == null ? "" : arg4);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(HiiPackagesIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @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.HiiPackages;\r
+\r
+import java.util.Vector;\r
+\r
+public class HiiPackagesVector {\r
+\r
+ private Vector<HiiPackagesIdentification> vHiiPackages = new Vector<HiiPackagesIdentification>();\r
+\r
+ public int findHiiPackages(HiiPackagesIdentification sfi) {\r
+ for (int index = 0; index < vHiiPackages.size(); index++) {\r
+ if (vHiiPackages.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findHiiPackages(String name) {\r
+ for (int index = 0; index < vHiiPackages.size(); index++) {\r
+ if (vHiiPackages.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public HiiPackagesIdentification getHiiPackages(int index) {\r
+ if (index > -1) {\r
+ return vHiiPackages.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addHiiPackages(HiiPackagesIdentification arg0) {\r
+ vHiiPackages.addElement(arg0);\r
+ }\r
+\r
+ public void updateHiiPackages(HiiPackagesIdentification arg0, int arg1) {\r
+ vHiiPackages.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removeHiiPackages(HiiPackagesIdentification arg0) {\r
+ int index = findHiiPackages(arg0);\r
+ if (index > -1) {\r
+ vHiiPackages.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removeHiiPackages(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vHiiPackages.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<HiiPackagesIdentification> getvHiiPackages() {\r
+ return vHiiPackages;\r
+ }\r
+\r
+ public void setvHiiPackages(Vector<HiiPackagesIdentification> HiiPackages) {\r
+ vHiiPackages = HiiPackages;\r
+ }\r
+\r
+ public Vector<String> getHiiPackagesName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vHiiPackages.size(); index++) {\r
+ v.addElement(vHiiPackages.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vHiiPackages.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.Hobs;\r
+\r
+import java.util.Vector;\r
+\r
+public class HobsIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String type = null;\r
+\r
+ private String usage = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private String help = null;\r
+\r
+ public HobsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.type = (arg1 == null ? "" : arg1);\r
+ this.usage = (arg2 == null ? "" : arg2);\r
+ this.featureFlag = (arg3 == null ? "" : arg3);\r
+ this.supArchList = arg4;\r
+ this.help = (arg5 == null ? "" : arg5);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(HobsIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getType() {\r
+ return type;\r
+ }\r
+\r
+ public void setType(String type) {\r
+ this.type = type;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @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.Hobs;\r
+\r
+import java.util.Vector;\r
+\r
+public class HobsVector {\r
+\r
+ private Vector<HobsIdentification> vHobs = new Vector<HobsIdentification>();\r
+\r
+ public int findHobs(HobsIdentification sfi) {\r
+ for (int index = 0; index < vHobs.size(); index++) {\r
+ if (vHobs.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findHobs(String name) {\r
+ for (int index = 0; index < vHobs.size(); index++) {\r
+ if (vHobs.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public HobsIdentification getHobs(int index) {\r
+ if (index > -1) {\r
+ return vHobs.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addHobs(HobsIdentification arg0) {\r
+ vHobs.addElement(arg0);\r
+ }\r
+\r
+ public void updateHobs(HobsIdentification arg0, int arg1) {\r
+ vHobs.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removeHobs(HobsIdentification arg0) {\r
+ int index = findHobs(arg0);\r
+ if (index > -1) {\r
+ vHobs.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removeHobs(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vHobs.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<HobsIdentification> getvHobs() {\r
+ return vHobs;\r
+ }\r
+\r
+ public void setvHobs(Vector<HobsIdentification> Hobs) {\r
+ vHobs = Hobs;\r
+ }\r
+\r
+ public Vector<String> getHobsName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vHobs.size(); index++) {\r
+ v.addElement(vHobs.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vHobs.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Library Class Identification\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.LibraryClass;\r
+\r
+import java.util.Vector;\r
+\r
+public class LibraryClassIdentification {\r
+ private String libraryClassName = null;\r
+\r
+ private String usage = null;\r
+\r
+ private String recommendedInstanceVersion = null;\r
+\r
+ private String recommendedInstanceGuid = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private Vector<String> supModuleList = null;\r
+ \r
+ private String help = null;\r
+\r
+ public LibraryClassIdentification() {\r
+\r
+ }\r
+\r
+ public LibraryClassIdentification(String strName, String strUsage, String strRecommendedInstanceVersion,\r
+ String strRecommendedInstanceGuid, Vector<String> vSupArchList,\r
+ String strFeatureFlag, Vector<String> vSupModuleList, String strHelp) {\r
+ this.libraryClassName = (strName == null ? "" : strName);\r
+ this.usage = (strUsage == null ? "" : strUsage);\r
+ this.recommendedInstanceVersion = (strRecommendedInstanceVersion == null ? "" : strRecommendedInstanceVersion);\r
+ this.recommendedInstanceGuid = (strRecommendedInstanceGuid == null ? "" : strRecommendedInstanceGuid);\r
+ this.supArchList = vSupArchList;\r
+ this.featureFlag = (strFeatureFlag == null ? "" : strFeatureFlag);\r
+ this.supModuleList = vSupModuleList;\r
+ this.help = (strHelp == null ? "" : strHelp);\r
+ }\r
+\r
+ public String getLibraryClassName() {\r
+ return libraryClassName;\r
+ }\r
+\r
+ public void setLibraryClassName(String libraryClassName) {\r
+ this.libraryClassName = libraryClassName;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getRecommendedInstanceGuid() {\r
+ return recommendedInstanceGuid;\r
+ }\r
+\r
+ public void setRecommendedInstanceGuid(String recommendedInstanceGuid) {\r
+ this.recommendedInstanceGuid = recommendedInstanceGuid;\r
+ }\r
+\r
+ public String getRecommendedInstanceVersion() {\r
+ return recommendedInstanceVersion;\r
+ }\r
+\r
+ public void setRecommendedInstanceVersion(String recommendedInstanceVersion) {\r
+ this.recommendedInstanceVersion = recommendedInstanceVersion;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(LibraryClassIdentification lib) {\r
+ if (this.libraryClassName.equals(lib.libraryClassName) && this.usage.equals(lib.getUsage())) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public Vector<String> getSupModuleList() {\r
+ return supModuleList;\r
+ }\r
+\r
+ public void setSupModuleList(Vector<String> supModuleList) {\r
+ this.supModuleList = supModuleList;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to define Library Class 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.LibraryClass;\r
+\r
+import java.util.Vector;\r
+\r
+\r
+public class LibraryClassVector {\r
+ private Vector<LibraryClassIdentification> vLibraryClass = new Vector<LibraryClassIdentification>();\r
+ \r
+ public int findLibraryClass(LibraryClassIdentification lib) {\r
+ for (int index = 0; index < vLibraryClass.size(); index++) {\r
+ if (vLibraryClass.elementAt(index).equals(lib)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+ \r
+ public int findLibraryClass(String name) {\r
+ for (int index = 0; index < vLibraryClass.size(); index++) {\r
+ if (vLibraryClass.elementAt(index).getLibraryClassName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+ \r
+ public LibraryClassIdentification getLibraryClass(int index) {\r
+ if (index > -1) {\r
+ return vLibraryClass.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+ \r
+ public void addLibraryClass(LibraryClassIdentification lib) {\r
+ vLibraryClass.addElement(lib);\r
+ }\r
+ \r
+ public void updateLibraryClass(LibraryClassIdentification lib, int index) {\r
+ vLibraryClass.setElementAt(lib, index);\r
+ }\r
+ \r
+ public void removeLibraryClass(LibraryClassIdentification lib) {\r
+ int index = findLibraryClass(lib);\r
+ if (index > -1) {\r
+ vLibraryClass.removeElementAt(index);\r
+ }\r
+ }\r
+ \r
+ public void removeLibraryClass(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vLibraryClass.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<LibraryClassIdentification> getVLibraryClass() {\r
+ return vLibraryClass;\r
+ }\r
+\r
+ public void setVLibraryClass(Vector<LibraryClassIdentification> libraryClass) {\r
+ vLibraryClass = libraryClass;\r
+ }\r
+ \r
+ public Vector<String> getLibraryClassName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vLibraryClass.size(); index++) {\r
+ v.addElement(vLibraryClass.get(index).getLibraryClassName());\r
+ }\r
+ return v;\r
+ }\r
+ \r
+ public int size() {\r
+ return this.vLibraryClass.size();\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+ \r
+ The file is used to save basic information of module\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;\r
+\r
+\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
+import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
+\r
+public class ModuleIdentification extends Identification {\r
+ \r
+ private PackageIdentification packageId;\r
+ \r
+ public ModuleIdentification(String name, String guid, String version, String path) {\r
+ super(name, guid, version, path);\r
+ }\r
+ \r
+ public ModuleIdentification(Identification id) {\r
+ super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
+ }\r
+ \r
+ public ModuleIdentification(String name, String guid, String version, String path, PackageIdentification packageId){\r
+ super(name, guid, version, path);\r
+ this.packageId = packageId;\r
+ }\r
+ \r
+ public ModuleIdentification(Identification id, PackageIdentification packageId) {\r
+ super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
+ this.packageId = packageId;\r
+ }\r
+ \r
+// public boolean equals(Object obj) {\r
+// if (obj instanceof Identification) {\r
+// Identification id = (Identification)obj;\r
+// if ( this.getName().equalsIgnoreCase(id.getName())) {\r
+// return true;\r
+// }\r
+// // and package is the same one\r
+// return false;\r
+// }\r
+// else {\r
+// return super.equals(obj);\r
+// }\r
+// }\r
+ \r
+ public String toString(){\r
+ return "Module " + this.getName() + "[" + this.getGuid() + "] in package " + packageId;\r
+ }\r
+\r
+ public PackageIdentification getPackageId() {\r
+ return packageId;\r
+ }\r
+\r
+ public void setPackageId(PackageIdentification packageId) {\r
+ this.packageId = packageId;\r
+ }\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.PackageDependencies;\r
+\r
+import java.util.Vector;\r
+\r
+public class PackageDependenciesIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String version = null;\r
+\r
+ private String guid = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+\r
+ public PackageDependenciesIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.version = (arg1 == null ? "" : arg1);\r
+ this.guid = (arg2 == null ? "" : arg2);\r
+ this.featureFlag = (arg3 == null ? "" : arg3);\r
+ this.supArchList = arg4;\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getGuid() {\r
+ return guid;\r
+ }\r
+\r
+ public void setGuid(String guid) {\r
+ this.guid = guid;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+\r
+ public String getVersion() {\r
+ return version;\r
+ }\r
+\r
+ public void setVersion(String version) {\r
+ this.version = version;\r
+ }\r
+ \r
+ public boolean equals(PackageDependenciesIdentification pdi) {\r
+ if (this.guid.equals(pdi.guid)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+}\r
--- /dev/null
+/** @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.PackageDependencies;\r
+\r
+import java.util.Vector;\r
+\r
+public class PackageDependenciesVector {\r
+\r
+ private Vector<PackageDependenciesIdentification> vPackageDependencies = new Vector<PackageDependenciesIdentification>();\r
+\r
+ public int findPackageDependencies(PackageDependenciesIdentification sfi) {\r
+ for (int index = 0; index < vPackageDependencies.size(); index++) {\r
+ if (vPackageDependencies.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findPackageDependencies(String name) {\r
+ for (int index = 0; index < vPackageDependencies.size(); index++) {\r
+ if (vPackageDependencies.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public PackageDependenciesIdentification getPackageDependencies(int index) {\r
+ if (index > -1) {\r
+ return vPackageDependencies.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addPackageDependencies(PackageDependenciesIdentification arg0) {\r
+ vPackageDependencies.addElement(arg0);\r
+ }\r
+\r
+ public void updatePackageDependencies(PackageDependenciesIdentification arg0, int arg1) {\r
+ vPackageDependencies.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removePackageDependencies(PackageDependenciesIdentification arg0) {\r
+ int index = findPackageDependencies(arg0);\r
+ if (index > -1) {\r
+ vPackageDependencies.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removePackageDependencies(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vPackageDependencies.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<PackageDependenciesIdentification> getvPackageDependencies() {\r
+ return vPackageDependencies;\r
+ }\r
+\r
+ public void setvPackageDependencies(Vector<PackageDependenciesIdentification> PackageDependencies) {\r
+ vPackageDependencies = PackageDependencies;\r
+ }\r
+\r
+ public Vector<String> getPackageDependenciesName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vPackageDependencies.size(); index++) {\r
+ v.addElement(vPackageDependencies.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vPackageDependencies.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.PcdCoded;\r
+\r
+import java.util.Vector;\r
+\r
+public class PcdCodedIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String guid = null;\r
+ \r
+ private String featureFlag = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String value = null;\r
+ \r
+ private String help = null;\r
+ \r
+ private String type = null;\r
+\r
+ public PcdCodedIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4, String arg5, String arg6) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.guid = (arg1 == null ? "" : arg1);\r
+ this.featureFlag = (arg2 == null ? "" : arg2);\r
+ this.supArchList = arg3;\r
+ this.value = (arg4 == null ? "" : arg4);\r
+ this.help = (arg5 == null ? "" : arg5);\r
+ this.type = (arg6 == null ? "" : arg6);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(PcdCodedIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getGuid() {\r
+ return guid;\r
+ }\r
+\r
+ public void setGuid(String guid) {\r
+ this.guid = guid;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+\r
+ public String getType() {\r
+ return type;\r
+ }\r
+\r
+ public void setType(String type) {\r
+ this.type = type;\r
+ }\r
+\r
+ public String getValue() {\r
+ return value;\r
+ }\r
+\r
+ public void setValue(String value) {\r
+ this.value = value;\r
+ }\r
+}\r
--- /dev/null
+/** @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.PcdCoded;\r
+\r
+import java.util.Vector;\r
+\r
+public class PcdCodedVector {\r
+\r
+ private Vector<PcdCodedIdentification> vPcdCoded = new Vector<PcdCodedIdentification>();\r
+\r
+ public int findPcdCoded(PcdCodedIdentification sfi) {\r
+ for (int index = 0; index < vPcdCoded.size(); index++) {\r
+ if (vPcdCoded.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findPcdCoded(String name) {\r
+ for (int index = 0; index < vPcdCoded.size(); index++) {\r
+ if (vPcdCoded.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public PcdCodedIdentification getPcdCoded(int index) {\r
+ if (index > -1) {\r
+ return vPcdCoded.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addPcdCoded(PcdCodedIdentification arg0) {\r
+ vPcdCoded.addElement(arg0);\r
+ }\r
+\r
+ public void updatePcdCoded(PcdCodedIdentification arg0, int arg1) {\r
+ vPcdCoded.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removePcdCoded(PcdCodedIdentification arg0) {\r
+ int index = findPcdCoded(arg0);\r
+ if (index > -1) {\r
+ vPcdCoded.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removePcdCoded(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vPcdCoded.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<PcdCodedIdentification> getvPcdCoded() {\r
+ return vPcdCoded;\r
+ }\r
+\r
+ public void setvPcdCoded(Vector<PcdCodedIdentification> PcdCoded) {\r
+ vPcdCoded = PcdCoded;\r
+ }\r
+\r
+ public Vector<String> getPcdCodedName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vPcdCoded.size(); index++) {\r
+ v.addElement(vPcdCoded.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vPcdCoded.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.Ppis;\r
+\r
+import java.util.Vector;\r
+\r
+public class PpisIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String type = null;\r
+\r
+ private String usage = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private String help = null;\r
+\r
+ public PpisIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.type = (arg1 == null ? "" : arg1);\r
+ this.usage = (arg2 == null ? "" : arg2);\r
+ this.featureFlag = (arg3 == null ? "" : arg3);\r
+ this.supArchList = arg4;\r
+ this.help = (arg5 == null ? "" : arg5);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(PpisIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getType() {\r
+ return type;\r
+ }\r
+\r
+ public void setType(String type) {\r
+ this.type = type;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @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.Ppis;\r
+\r
+import java.util.Vector;\r
+\r
+public class PpisVector {\r
+\r
+ private Vector<PpisIdentification> vPpis = new Vector<PpisIdentification>();\r
+\r
+ public int findPpis(PpisIdentification sfi) {\r
+ for (int index = 0; index < vPpis.size(); index++) {\r
+ if (vPpis.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findPpis(String name) {\r
+ for (int index = 0; index < vPpis.size(); index++) {\r
+ if (vPpis.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public PpisIdentification getPpis(int index) {\r
+ if (index > -1) {\r
+ return vPpis.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addPpis(PpisIdentification arg0) {\r
+ vPpis.addElement(arg0);\r
+ }\r
+\r
+ public void updatePpis(PpisIdentification arg0, int arg1) {\r
+ vPpis.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removePpis(PpisIdentification arg0) {\r
+ int index = findPpis(arg0);\r
+ if (index > -1) {\r
+ vPpis.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removePpis(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vPpis.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<PpisIdentification> getvPpis() {\r
+ return vPpis;\r
+ }\r
+\r
+ public void setvPpis(Vector<PpisIdentification> Ppis) {\r
+ vPpis = Ppis;\r
+ }\r
+\r
+ public Vector<String> getPpisName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vPpis.size(); index++) {\r
+ v.addElement(vPpis.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vPpis.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.Protocols;\r
+\r
+import java.util.Vector;\r
+\r
+public class ProtocolsIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String type = null;\r
+\r
+ private String usage = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private String help = null;\r
+\r
+ public ProtocolsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.type = (arg1 == null ? "" : arg1);\r
+ this.usage = (arg2 == null ? "" : arg2);\r
+ this.featureFlag = (arg3 == null ? "" : arg3);\r
+ this.supArchList = arg4;\r
+ this.help = (arg5 == null ? "" : arg5);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(ProtocolsIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getType() {\r
+ return type;\r
+ }\r
+\r
+ public void setType(String type) {\r
+ this.type = type;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @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 updateProtocols(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
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Source Files Identification\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.SourceFiles;\r
+\r
+import java.util.Vector;\r
+\r
+public class SourceFilesIdentification {\r
+\r
+ private String filename = null;\r
+\r
+ private String tagName = null;\r
+ \r
+ private String toolCode = null;\r
+ \r
+ private String toolChainFamily = null;\r
+ \r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+\r
+ public SourceFilesIdentification(String strFilename, String strTagName, String strToolCode, String strToolChainFamily,\r
+ String strFeatureFlag, Vector<String> arch) {\r
+ this.filename = (strFilename == null ? "" : strFilename);\r
+ this.tagName = (strTagName == null ? "" : strTagName);\r
+ this.toolCode = (strToolCode == null ? "" : strToolCode);\r
+ this.toolChainFamily = (strToolChainFamily == null ? "" : strToolChainFamily);\r
+ this.featureFlag = (strFeatureFlag == null ? "" : strFeatureFlag);\r
+ this.supArchList = arch;\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getFilename() {\r
+ return filename;\r
+ }\r
+\r
+ public void setFilename(String filename) {\r
+ this.filename = filename;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+\r
+ public String getTagName() {\r
+ return tagName;\r
+ }\r
+\r
+ public void setTagName(String tagName) {\r
+ this.tagName = tagName;\r
+ }\r
+\r
+ public String getToolChainFamily() {\r
+ return toolChainFamily;\r
+ }\r
+\r
+ public void setToolChainFamily(String toolChainFamily) {\r
+ this.toolChainFamily = toolChainFamily;\r
+ }\r
+\r
+ public String getToolCode() {\r
+ return toolCode;\r
+ }\r
+\r
+ public void setToolCode(String toolCode) {\r
+ this.toolCode = toolCode;\r
+ }\r
+ \r
+ public boolean equals(SourceFilesIdentification sfid) {\r
+ if (this.filename.equals(sfid.filename)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+}\r
--- /dev/null
+/** @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
+ vSourceFiles.addElement(sfi);\r
+ }\r
+\r
+ public void updateSourceFiles(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
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.SystemTables;\r
+\r
+import java.util.Vector;\r
+\r
+public class SystemTablesIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String usage = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private String help = null;\r
+\r
+ public SystemTablesIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.usage = (arg1 == null ? "" : arg1);\r
+ this.featureFlag = (arg2 == null ? "" : arg2);\r
+ this.supArchList = arg3;\r
+ this.help = (arg4 == null ? "" : arg4);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(SystemTablesIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @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.SystemTables;\r
+\r
+import java.util.Vector;\r
+\r
+public class SystemTablesVector {\r
+\r
+ private Vector<SystemTablesIdentification> vSystemTables = new Vector<SystemTablesIdentification>();\r
+\r
+ public int findSystemTables(SystemTablesIdentification sfi) {\r
+ for (int index = 0; index < vSystemTables.size(); index++) {\r
+ if (vSystemTables.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findSystemTables(String name) {\r
+ for (int index = 0; index < vSystemTables.size(); index++) {\r
+ if (vSystemTables.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public SystemTablesIdentification getSystemTables(int index) {\r
+ if (index > -1) {\r
+ return vSystemTables.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addSystemTables(SystemTablesIdentification arg0) {\r
+ vSystemTables.addElement(arg0);\r
+ }\r
+\r
+ public void updateSystemTables(SystemTablesIdentification arg0, int arg1) {\r
+ vSystemTables.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removeSystemTables(SystemTablesIdentification arg0) {\r
+ int index = findSystemTables(arg0);\r
+ if (index > -1) {\r
+ vSystemTables.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removeSystemTables(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vSystemTables.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<SystemTablesIdentification> getvSystemTables() {\r
+ return vSystemTables;\r
+ }\r
+\r
+ public void setvSystemTables(Vector<SystemTablesIdentification> SystemTables) {\r
+ vSystemTables = SystemTables;\r
+ }\r
+\r
+ public Vector<String> getSystemTablesName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vSystemTables.size(); index++) {\r
+ v.addElement(vSystemTables.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vSystemTables.size();\r
+ }\r
+\r
+}\r
--- /dev/null
+/** @file\r
+\r
+ The file is used to define Package Dependencies Identification\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.Variables;\r
+\r
+import java.util.Vector;\r
+\r
+public class VariablesIdentification {\r
+\r
+ //\r
+ // Define class members\r
+ //\r
+ private String name = null;\r
+\r
+ private String guid = null;\r
+\r
+ private String usage = null;\r
+\r
+ private Vector<String> supArchList = null;\r
+\r
+ private String featureFlag = null;\r
+ \r
+ private String help = null;\r
+\r
+ public VariablesIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4, String arg5) {\r
+ this.name = (arg0 == null ? "" : arg0);\r
+ this.guid = (arg1 == null ? "" : arg1);\r
+ this.usage = (arg2 == null ? "" : arg2);\r
+ this.featureFlag = (arg3 == null ? "" : arg3);\r
+ this.supArchList = arg4;\r
+ this.help = (arg5 == null ? "" : arg5);\r
+ }\r
+\r
+ public String getFeatureFlag() {\r
+ return featureFlag;\r
+ }\r
+\r
+ public void setFeatureFlag(String featureFlag) {\r
+ this.featureFlag = featureFlag;\r
+ }\r
+\r
+ public String getName() {\r
+ return name;\r
+ }\r
+\r
+ public void setName(String name) {\r
+ this.name = name;\r
+ }\r
+\r
+ public Vector<String> getSupArchList() {\r
+ return supArchList;\r
+ }\r
+\r
+ public void setSupArchList(Vector<String> supArchList) {\r
+ this.supArchList = supArchList;\r
+ }\r
+ \r
+ public boolean equals(VariablesIdentification pi) {\r
+ if (this.name.equals(pi.name)) {\r
+ return true;\r
+ }\r
+ return false;\r
+ }\r
+\r
+ public String getUsage() {\r
+ return usage;\r
+ }\r
+\r
+ public void setUsage(String usage) {\r
+ this.usage = usage;\r
+ }\r
+\r
+ public String getGuid() {\r
+ return guid;\r
+ }\r
+\r
+ public void setGuid(String guid) {\r
+ this.guid = guid;\r
+ }\r
+\r
+ public String getHelp() {\r
+ return help;\r
+ }\r
+\r
+ public void setHelp(String help) {\r
+ this.help = help;\r
+ }\r
+}\r
--- /dev/null
+/** @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.Variables;\r
+\r
+import java.util.Vector;\r
+\r
+public class VariablesVector {\r
+\r
+ private Vector<VariablesIdentification> vVariables = new Vector<VariablesIdentification>();\r
+\r
+ public int findVariables(VariablesIdentification sfi) {\r
+ for (int index = 0; index < vVariables.size(); index++) {\r
+ if (vVariables.elementAt(index).equals(sfi)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public int findVariables(String name) {\r
+ for (int index = 0; index < vVariables.size(); index++) {\r
+ if (vVariables.elementAt(index).getName().equals(name)) {\r
+ return index;\r
+ }\r
+ }\r
+ return -1;\r
+ }\r
+\r
+ public VariablesIdentification getVariables(int index) {\r
+ if (index > -1) {\r
+ return vVariables.elementAt(index);\r
+ } else {\r
+ return null;\r
+ }\r
+ }\r
+\r
+ public void addVariables(VariablesIdentification arg0) {\r
+ vVariables.addElement(arg0);\r
+ }\r
+\r
+ public void updateVariables(VariablesIdentification arg0, int arg1) {\r
+ vVariables.setElementAt(arg0, arg1);\r
+ }\r
+\r
+ public void removeVariables(VariablesIdentification arg0) {\r
+ int index = findVariables(arg0);\r
+ if (index > -1) {\r
+ vVariables.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public void removeVariables(int index) {\r
+ if (index > -1 && index < this.size()) {\r
+ vVariables.removeElementAt(index);\r
+ }\r
+ }\r
+\r
+ public Vector<VariablesIdentification> getvVariables() {\r
+ return vVariables;\r
+ }\r
+\r
+ public void setvVariables(Vector<VariablesIdentification> Variables) {\r
+ vVariables = Variables;\r
+ }\r
+\r
+ public Vector<String> getVariablesName() {\r
+ Vector<String> v = new Vector<String>();\r
+ for (int index = 0; index < this.vVariables.size(); index++) {\r
+ v.addElement(vVariables.get(index).getName());\r
+ }\r
+ return v;\r
+ }\r
+\r
+ public int size() {\r
+ return this.vVariables.size();\r
+ }\r
+\r
+}\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.BootModes.BootModesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.BootModes.BootModesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.BootModes.BootModesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.BootModes.BootModesVector;\r
\r
/**\r
The class is used to create, update BootModes of MSA/MBD file\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.DataHubs.DataHubsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.DataHubs.DataHubsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.DataHubs.DataHubsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.DataHubs.DataHubsVector;\r
\r
/**\r
The class is used to create, update DataHub of MSA/MBD file\r
jTextFieldDataHubRecord = new JTextField();\r
jTextFieldDataHubRecord.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
jTextFieldDataHubRecord.setPreferredSize(new java.awt.Dimension(320, 20));\r
+ jTextFieldDataHubRecord.setToolTipText("Enter the C Name of the Data Hub Record");\r
}\r
return jTextFieldDataHubRecord;\r
}\r
import org.tianocore.ModuleDefinitionsDocument;\r
import org.tianocore.ModuleSurfaceAreaDocument;\r
import org.tianocore.ModuleDefinitionsDocument.ModuleDefinitions.ClonedFrom;\r
+import org.tianocore.frameworkwizard.common.DataType;\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
if (iCheckBoxListArch == null) {\r
iCheckBoxListArch = new ICheckBoxList();\r
iCheckBoxListArch.addFocusListener(this);\r
+ iCheckBoxListArch.setToolTipText(DataType.SUP_ARCH_LIST_HELP_TEXT);\r
}\r
return iCheckBoxListArch;\r
}\r
\r
public void focusLost(FocusEvent arg0) {\r
this.save();\r
+ if (arg0.getSource() == this.jTextFieldOutputFileBasename) {\r
+ }\r
}\r
}\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Events.EventsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Events.EventsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Events.EventsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Events.EventsVector;\r
+import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
/**\r
The class is used to create, update Event of MSA/MBD file\r
\r
private JLabel jLabelC_Name = null;\r
\r
- private JTextField jTextFieldC_Name = null;\r
+ private JComboBox jComboBoxGuidC_Name = null;\r
\r
private JLabel jLabelUsage = null;\r
\r
private EventsVector vid = new EventsVector();\r
\r
private EnumerationData ed = new EnumerationData();\r
+ \r
+ private WorkspaceTools wt = new WorkspaceTools();\r
\r
/**\r
This method initializes jTextFieldC_Name \r
@return javax.swing.JTextField jTextFieldC_Name\r
\r
**/\r
- private JTextField getJTextFieldC_Name() {\r
- if (jTextFieldC_Name == null) {\r
- jTextFieldC_Name = new JTextField();\r
- jTextFieldC_Name.setBounds(new java.awt.Rectangle(160, 35, 320, 20));\r
- jTextFieldC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r
+ private JComboBox getJComboBoxGuidC_Name() {\r
+ if (jComboBoxGuidC_Name == null) {\r
+ jComboBoxGuidC_Name = new JComboBox();\r
+ jComboBoxGuidC_Name.setBounds(new java.awt.Rectangle(160, 35, 320, 20));\r
+ jComboBoxGuidC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r
+ jComboBoxGuidC_Name.setToolTipText("Select the GUID C Name of the Event");\r
}\r
- return jTextFieldC_Name;\r
+ return jComboBoxGuidC_Name;\r
}\r
\r
/**\r
jComboBoxEventsType = new JComboBox();\r
jComboBoxEventsType.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
jComboBoxEventsType.setPreferredSize(new java.awt.Dimension(320, 20));\r
+ jComboBoxEventsType.setToolTipText("Select Create event if the Module has an event that is waiting to be signaled. Select Signal if the Module will signal all events in an event group. Signal Event The events are named by GUID.");\r
}\r
return jComboBoxEventsType;\r
}\r
**/\r
public void setViewMode(boolean isView) {\r
if (isView) {\r
- this.jTextFieldC_Name.setEnabled(!isView);\r
+ this.jComboBoxGuidC_Name.setEnabled(!isView);\r
this.jComboBoxUsage.setEnabled(!isView);\r
}\r
}\r
\r
jContentPane.add(jLabelEventType, null);\r
jContentPane.add(jLabelC_Name, null);\r
- jContentPane.add(getJTextFieldC_Name(), null);\r
+ jContentPane.add(getJComboBoxGuidC_Name(), null);\r
jContentPane.add(jLabelUsage, null);\r
jContentPane.add(getJComboBoxUsage(), null);\r
jStarLabel1 = new StarLabel();\r
private void initFrame() {\r
Tools.generateComboBoxByVector(jComboBoxEventsType, ed.getVEventType());\r
Tools.generateComboBoxByVector(jComboBoxUsage, ed.getVEventUsage());\r
+ Tools.generateComboBoxByVector(jComboBoxGuidC_Name, wt.getAllGuidDeclarationsFromWorkspace());\r
\r
this.iCheckBoxListArch.setAllItems(ed.getVSupportedArchitectures());\r
}\r
//\r
// Check Name \r
//\r
- if (isEmpty(this.jTextFieldC_Name.getText())) {\r
+ if (isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
Log.err("Event Name couldn't be empty");\r
return false;\r
}\r
\r
- if (!isEmpty(this.jTextFieldC_Name.getText())) {\r
- if (!DataValidation.isC_NameType(this.jTextFieldC_Name.getText())) {\r
+ if (!isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
+ if (!DataValidation.isC_NameType(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
Log.err("Incorrect data type for Event Name");\r
return false;\r
}\r
int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
\r
resizeComponentWidth(jComboBoxEventsType, intCurrentWidth, intPreferredWidth);\r
- resizeComponentWidth(jTextFieldC_Name, intCurrentWidth, intPreferredWidth);\r
+ resizeComponentWidth(jComboBoxGuidC_Name, intCurrentWidth, intPreferredWidth);\r
resizeComponentWidth(jComboBoxUsage, intCurrentWidth, intPreferredWidth);\r
resizeComponentWidth(jTextFieldHelpText, intCurrentWidth, intPreferredWidth);\r
resizeComponentWidth(jTextFieldFeatureFlag, intCurrentWidth, intPreferredWidth);\r
}\r
\r
private EventsIdentification getCurrentEvents() {\r
- String arg0 = this.jTextFieldC_Name.getText();\r
+ String arg0 = this.jComboBoxGuidC_Name.getSelectedItem().toString();\r
String arg1 = this.jComboBoxEventsType.getSelectedItem().toString();\r
String arg2 = this.jComboBoxUsage.getSelectedItem().toString();\r
\r
//\r
intSelectedItemId = jComboBoxList.getSelectedIndex();\r
\r
- this.jTextFieldC_Name.setText(vid.getEvents(intSelectedItemId).getName());\r
+ this.jComboBoxGuidC_Name.setSelectedItem(vid.getEvents(intSelectedItemId).getName());\r
this.jComboBoxEventsType.setSelectedItem(vid.getEvents(intSelectedItemId).getType());\r
this.jComboBoxUsage.setSelectedItem(vid.getEvents(intSelectedItemId).getUsage());\r
this.jTextFieldHelpText.setText(vid.getEvents(intSelectedItemId).getHelp());\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Externs.ExternsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Externs.ExternsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Externs.ExternsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Externs.ExternsVector;\r
\r
/**\r
The class is used to create, update DataHub of MSA/MBD file \r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Guids.GuidsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Guids.GuidsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Guids.GuidsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Guids.GuidsVector;\r
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
/**\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.HiiPackages.HiiPackagesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.HiiPackages.HiiPackagesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.HiiPackages.HiiPackagesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.HiiPackages.HiiPackagesVector;\r
\r
/**\r
The class is used to create, update Formset of MSA/MBD file\r
jTextFieldName = new JTextField();\r
jTextFieldName.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
jTextFieldName.setPreferredSize(new java.awt.Dimension(320, 20));\r
+ jTextFieldName.setToolTipText("Enter the C Name of the HII Package");\r
}\r
return jTextFieldName;\r
}\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Hobs.HobsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Hobs.HobsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Hobs.HobsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Hobs.HobsVector;\r
+import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
/**\r
The class is used to create, update Hob of MSA/MBD file\r
\r
private JLabel jLabel = null;\r
\r
- private JTextField jTextFieldC_Name = null;\r
+ private JComboBox jComboBoxGuidC_Name = null;\r
\r
private JLabel jLabelUsage = null;\r
\r
private HobsVector vid = new HobsVector();\r
\r
private EnumerationData ed = new EnumerationData();\r
+ \r
+ private WorkspaceTools wt = new WorkspaceTools();\r
\r
/**\r
This method initializes jTextField \r
@return javax.swing.JTextField jTextFieldC_Name\r
\r
**/\r
- private JTextField getJTextFieldC_Name() {\r
- if (jTextFieldC_Name == null) {\r
- jTextFieldC_Name = new JTextField();\r
- jTextFieldC_Name.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
- jTextFieldC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r
+ private JComboBox getJComboBoxGuidC_Name() {\r
+ if (jComboBoxGuidC_Name == null) {\r
+ jComboBoxGuidC_Name = new JComboBox();\r
+ jComboBoxGuidC_Name.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
+ jComboBoxGuidC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r
+ jComboBoxGuidC_Name.setToolTipText("Select the GUID C Name of the Hob");\r
}\r
- return jTextFieldC_Name;\r
+ return jComboBoxGuidC_Name;\r
}\r
\r
/**\r
**/\r
public void setViewMode(boolean isView) {\r
if (isView) {\r
- this.jTextFieldC_Name.setEnabled(!isView);\r
+ this.jComboBoxGuidC_Name.setEnabled(!isView);\r
this.jComboBoxUsage.setEnabled(!isView);\r
this.jComboBoxHobType.setEnabled(!isView);\r
}\r
jContentPane.setPreferredSize(new java.awt.Dimension(490, 495));\r
\r
jContentPane.add(jLabel, null);\r
- jContentPane.add(getJTextFieldC_Name(), null);\r
+ jContentPane.add(getJComboBoxGuidC_Name(), null);\r
jContentPane.add(jLabelUsage, null);\r
jContentPane.add(jLabelHobType, null);\r
jContentPane.add(getJComboBoxUsage(), null);\r
private void initFrame() {\r
Tools.generateComboBoxByVector(jComboBoxUsage, ed.getVHobUsage());\r
Tools.generateComboBoxByVector(jComboBoxHobType, ed.getVHobType());\r
+ Tools.generateComboBoxByVector(jComboBoxGuidC_Name, wt.getAllGuidDeclarationsFromWorkspace());\r
\r
this.iCheckBoxListArch.setAllItems(ed.getVSupportedArchitectures());\r
}\r
//\r
// Check Name \r
//\r
- if (isEmpty(this.jTextFieldC_Name.getText())) {\r
+ if (isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
Log.err("Hob Name couldn't be empty");\r
return false;\r
}\r
\r
- if (!isEmpty(this.jTextFieldC_Name.getText())) {\r
- if (!DataValidation.isC_NameType(this.jTextFieldC_Name.getText())) {\r
+ if (!isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
+ if (!DataValidation.isC_NameType(this.jComboBoxGuidC_Name.getSelectedItem().toString())) {\r
Log.err("Incorrect data type for Hob Name");\r
return false;\r
}\r
int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r
int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r
\r
- resizeComponentWidth(jTextFieldC_Name, intCurrentWidth, intPreferredWidth);\r
+ resizeComponentWidth(jComboBoxGuidC_Name, intCurrentWidth, intPreferredWidth);\r
resizeComponentWidth(jComboBoxHobType, intCurrentWidth, intPreferredWidth);\r
resizeComponentWidth(jComboBoxUsage, intCurrentWidth, intPreferredWidth);\r
resizeComponentWidth(jTextFieldHelpText, intCurrentWidth, intPreferredWidth);\r
}\r
\r
private HobsIdentification getCurrentHobs() {\r
- String arg0 = this.jTextFieldC_Name.getText();\r
+ String arg0 = this.jComboBoxGuidC_Name.getSelectedItem().toString();\r
String arg1 = this.jComboBoxHobType.getSelectedItem().toString();\r
String arg2 = this.jComboBoxUsage.getSelectedItem().toString();\r
\r
//\r
intSelectedItemId = jComboBoxList.getSelectedIndex();\r
\r
- this.jTextFieldC_Name.setText(vid.getHobs(intSelectedItemId).getName());\r
+ this.jComboBoxGuidC_Name.setSelectedItem(vid.getHobs(intSelectedItemId).getName());\r
this.jComboBoxHobType.setSelectedItem(vid.getHobs(intSelectedItemId).getType());\r
this.jComboBoxUsage.setSelectedItem(vid.getHobs(intSelectedItemId).getUsage());\r
this.jTextFieldHelpText.setText(vid.getHobs(intSelectedItemId).getHelp());\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.LibraryClass.LibraryClassIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.LibraryClass.LibraryClassVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.LibraryClass.LibraryClassIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.LibraryClass.LibraryClassVector;\r
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
/**\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.PcdCoded.PcdCodedIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.PcdCoded.PcdCodedVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.PcdCoded.PcdCodedIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.PcdCoded.PcdCodedVector;\r
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
/**\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.PackageDependencies.PackageDependenciesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.PackageDependencies.PackageDependenciesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.PackageDependencies.PackageDependenciesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.PackageDependencies.PackageDependenciesVector;\r
import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Ppis.PpisIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Ppis.PpisVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Ppis.PpisIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Ppis.PpisVector;\r
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
/**\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Protocols.ProtocolsIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Protocols.ProtocolsVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Protocols.ProtocolsIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Protocols.ProtocolsVector;\r
import org.tianocore.frameworkwizard.workspace.WorkspaceTools;\r
\r
/**\r
jComboBoxProtocolType.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
jComboBoxProtocolType.setPreferredSize(new java.awt.Dimension(320, 20));\r
jComboBoxProtocolType.addItemListener(this);\r
+ jComboBoxProtocolType.setToolTipText("Select Protocol Type");\r
}\r
return jComboBoxProtocolType;\r
}\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.SourceFiles.SourceFilesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.SourceFiles.SourceFilesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.SourceFiles.SourceFilesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.SourceFiles.SourceFilesVector;\r
import org.tianocore.frameworkwizard.workspace.Workspace;\r
\r
/**\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.SystemTables.SystemTablesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.SystemTables.SystemTablesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.SystemTables.SystemTablesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.SystemTables.SystemTablesVector;\r
\r
/**\r
The class is used to create, update SystemTable of MSA/MBD file\r
jTextFieldGuidC_Name = new JTextField();\r
jTextFieldGuidC_Name.setBounds(new java.awt.Rectangle(160, 10, 320, 20));\r
jTextFieldGuidC_Name.setPreferredSize(new java.awt.Dimension(320,20));\r
+ jTextFieldGuidC_Name.setToolTipText("Enter the C Name of the System Table");\r
}\r
return jTextFieldGuidC_Name;\r
}\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
import org.tianocore.frameworkwizard.common.ui.iCheckBoxList.ICheckBoxList;\r
-import org.tianocore.frameworkwizard.module.Identification.Variables.VariablesIdentification;\r
-import org.tianocore.frameworkwizard.module.Identification.Variables.VariablesVector;\r
+import org.tianocore.frameworkwizard.module.Identifications.Variables.VariablesIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.Variables.VariablesVector;\r
\r
/**\r
The class is used to create, update Variable of MSA/MBD file\r
jTextFieldVariableName.setSize(new java.awt.Dimension(320, 20));\r
jTextFieldVariableName.setPreferredSize(new java.awt.Dimension(320, 20));\r
jTextFieldVariableName.setLocation(new java.awt.Point(160, 10));\r
+ jTextFieldVariableName.setToolTipText("Enter a Hex Word Array, you must provide leading Zeros. 0x000a, 0x0010, ¡");\r
}\r
return jTextFieldVariableName;\r
}\r
jTextFieldGuidC_Name = new JTextField();\r
jTextFieldGuidC_Name.setBounds(new java.awt.Rectangle(160, 35, 320, 20));\r
jTextFieldGuidC_Name.setPreferredSize(new java.awt.Dimension(320, 20));\r
+ jTextFieldGuidC_Name.setToolTipText("Enter the C Name for the Variable Guid");\r
}\r
return jTextFieldGuidC_Name;\r
}\r
import org.tianocore.frameworkwizard.common.DataValidation;\r
import org.tianocore.frameworkwizard.common.EnumerationData;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.Tools;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r
import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
\r
package org.tianocore.frameworkwizard.packaging;\r
import java.io.File;\r
\r
-import org.tianocore.frameworkwizard.common.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
\r
public class PackageIdentification extends Identification{\r
\r
\r
import java.io.File;\r
\r
-import org.tianocore.frameworkwizard.common.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
\r
public class PlatformIdentification extends Identification{\r
\r
import org.tianocore.PackageSurfaceAreaDocument.PackageSurfaceArea;\r
import org.tianocore.PlatformHeaderDocument.PlatformHeader;\r
import org.tianocore.PlatformSurfaceAreaDocument.PlatformSurfaceArea;\r
+import org.tianocore.SourceFilesDocument.SourceFiles;\r
import org.tianocore.SpdHeaderDocument.SpdHeader;\r
import org.tianocore.frameworkwizard.common.DataType;\r
-import org.tianocore.frameworkwizard.common.Identification;\r
import org.tianocore.frameworkwizard.common.Log;\r
-import org.tianocore.frameworkwizard.common.OpenFile;\r
import org.tianocore.frameworkwizard.common.SaveFile;\r
import org.tianocore.frameworkwizard.common.Tools;\r
-import org.tianocore.frameworkwizard.module.Identification.ModuleIdentification;\r
+import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
+import org.tianocore.frameworkwizard.common.Identifications.OpenFile;\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
import org.tianocore.frameworkwizard.platform.PlatformIdentification;\r
\r
MsaFiles files = OpenFile.openSpdFile(path).getMsaFiles();\r
if (files != null) {\r
for (int index = 0; index < files.getFilenameList().size(); index++) {\r
- modulePath.addElement(files.getFilenameList().get(index));\r
+ String msaPath = files.getFilenameList().get(index);\r
+ msaPath = Tools.addFileSeparator(Tools.getFilePathOnly(path)) + msaPath;\r
+ msaPath = Tools.convertPathToCurrentOsType(msaPath);\r
+ modulePath.addElement(msaPath);\r
}\r
}\r
} catch (IOException e) {\r
for (int indexI = 0; indexI < vPackageList.size(); indexI++) {\r
packagePath = vPackageList.elementAt(indexI).getPath();\r
modulePaths = this.getAllModulesOfPackage(packagePath);\r
- packagePath = packagePath.substring(0, packagePath.lastIndexOf(DataType.FILE_SEPARATOR)\r
- + DataType.FILE_SEPARATOR.length());\r
+ \r
for (int indexJ = 0; indexJ < modulePaths.size(); indexJ++) {\r
- modulePath = Tools.convertPathToCurrentOsType(packagePath + modulePaths.elementAt(indexJ));\r
try {\r
+ modulePath = modulePaths.get(indexJ);\r
id = getId(modulePath, OpenFile.openMsaFile(modulePath));\r
vModuleList.addElement(new ModuleIdentification(id, vPackageList.elementAt(indexI)));\r
} catch (IOException e) {\r
for (int index = 0; index < spd.getPpiDeclarations().getEntryList().size(); index++) {\r
vector.addElement(spd.getPpiDeclarations().getEntryList().get(index).getCName());\r
}\r
- } \r
+ }\r
}\r
return vector;\r
}\r
for (int index = 0; index < spd.getGuidDeclarations().getEntryList().size(); index++) {\r
vector.addElement(spd.getGuidDeclarations().getEntryList().get(index).getCName());\r
}\r
- } \r
+ }\r
}\r
return vector;\r
}\r
for (int index = 0; index < spd.getPcdDeclarations().getPcdEntryList().size(); index++) {\r
vector.addElement(spd.getPcdDeclarations().getPcdEntryList().get(index).getCName());\r
}\r
- } \r
+ }\r
}\r
return vector;\r
}\r
for (int indexI = 0; indexI < vPackageList.size(); indexI++) {\r
packagePath = vPackageList.elementAt(indexI).getPath();\r
modulePaths = this.getAllModulesOfPackage(packagePath);\r
- packagePath = packagePath.substring(0, packagePath.lastIndexOf(DataType.FILE_SEPARATOR)\r
- + DataType.FILE_SEPARATOR.length());\r
for (int indexJ = 0; indexJ < modulePaths.size(); indexJ++) {\r
- modulePath = Tools.convertPathToCurrentOsType(packagePath + modulePaths.elementAt(indexJ));\r
+ modulePath = modulePaths.get(indexJ);\r
try {\r
mid = getId(modulePath, OpenFile.openMsaFile(modulePath));\r
//\r
strFrameworkDbFilePath = Tools.convertPathToCurrentOsType(strFrameworkDbFilePath);\r
SaveFile.saveDbFile(strFrameworkDbFilePath, fdb);\r
}\r
+\r
+ /**\r
+ Get all file's path from one module\r
+ \r
+ @param path\r
+ @return\r
+ @throws IOException\r
+ @throws XmlException\r
+ @throws Exception\r
+ \r
+ **/\r
+ public Vector<String> getAllModuleFiles(String path) throws IOException, XmlException, Exception {\r
+ Vector<String> v = new Vector<String>();\r
+ path = Tools.convertPathToCurrentOsType(path);\r
+ v.addElement(path);\r
+ ModuleSurfaceArea msa = OpenFile.openMsaFile(path);\r
+ if (msa != null) {\r
+ //\r
+ // Get all files' path of a module\r
+ //\r
+ SourceFiles sf = msa.getSourceFiles();\r
+ if (sf != null) {\r
+ for (int index = 0; index < sf.getFilenameList().size(); index++) {\r
+ String temp = sf.getFilenameList().get(index).getStringValue();\r
+ temp = Tools.addFileSeparator(Tools.getFilePathOnly(path)) + temp;\r
+ v.addElement(Tools.convertPathToCurrentOsType(temp));\r
+ }\r
+ }\r
+ }\r
+\r
+ return v;\r
+ }\r
+\r
+ /**\r
+ Get all file's path from one package\r
+ \r
+ @param path\r
+ @return\r
+ @throws IOException\r
+ @throws XmlException\r
+ @throws Exception\r
+ \r
+ **/\r
+ public Vector<String> getAllPakcageFiles(String path) throws IOException, XmlException, Exception {\r
+ Vector<String> v = new Vector<String>();\r
+ path = Tools.convertPathToCurrentOsType(path);\r
+ //\r
+ // First add package\r
+ //\r
+ v.addElement(path);\r
+ \r
+ //\r
+ // Add module's files one by one\r
+ //\r
+ Vector<String> f1 = new Vector<String>();\r
+ f1 = getAllModulesOfPackage(path);\r
+ for (int indexI = 0; indexI < f1.size(); indexI++) {\r
+ Vector<String> f2 = getAllModuleFiles(f1.get(indexI));\r
+ for (int indexJ = 0; indexJ < f2.size(); indexJ++) {\r
+ v.addElement(f2.get(indexJ));\r
+ }\r
+ }\r
+ //v.add(0, path);\r
+\r
+ return v;\r
+ }\r
}\r