--- /dev/null
+/** @file\r
+ \r
+ The file is used to save <farPackage> 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
+package org.tianocore.frameworkwizard.far;\r
+\r
+import java.util.List;\r
+\r
+import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
+\r
+public class FarPackage {\r
+ //\r
+ // Class member\r
+ //\r
+ private FarFileItem farFile;\r
+\r
+ private String guidValue;\r
+\r
+ private String version;\r
+\r
+ private String defaultPath;\r
+\r
+ private List<FarPlatformItem> farPlatformList;\r
+\r
+ private List<FarFileItem> contentList;\r
+\r
+ public String getDefaultPath() {\r
+ return defaultPath;\r
+ }\r
+\r
+ public void setDefaultPath(String defaultPath) {\r
+ this.defaultPath = defaultPath;\r
+ }\r
+\r
+ public FarFileItem getFarFile() {\r
+ return farFile;\r
+ }\r
+\r
+ public void setFarFile(FarFileItem farFile) {\r
+ this.farFile = farFile;\r
+ }\r
+\r
+ public List<FarPlatformItem> getFarPlatformList() {\r
+ return farPlatformList;\r
+ }\r
+\r
+ public void setFarPlatformList(List<FarPlatformItem> farPlatformList) {\r
+ this.farPlatformList = farPlatformList;\r
+ }\r
+\r
+ public String getGuidValue() {\r
+ return guidValue;\r
+ }\r
+\r
+ public void setGuidValue(String guidValue) {\r
+ this.guidValue = guidValue;\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 List<FarFileItem> getContentList() {\r
+ return this.contentList;\r
+ }\r
+\r
+ public void setContentList(List<FarFileItem> contentList) {\r
+ this.contentList = contentList;\r
+ }\r
+\r
+ public boolean isIdentityPkg(PackageIdentification pkgId) {\r
+ //File file = new File(farFile.getRelativeFilename());\r
+ if (pkgId.getGuid().equalsIgnoreCase(guidValue) && pkgId.getVersion().equalsIgnoreCase(version)) {\r
+ return true;\r
+ }\r
+ return false;\r
+\r
+ }\r
+}\r