]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/FarPackage.java
1. Update release note to use jdk1.5.0_06 to take place of jdk1.5.0_04
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / far / FarPackage.java
CommitLineData
5a24e806 1/** @file\r
2 \r
3 The file is used to save <farPackage> information.\r
4 \r
5 Copyright (c) 2006, Intel Corporation\r
6 All rights reserved. This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10 \r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13 \r
14 **/\r
15package org.tianocore.frameworkwizard.far;\r
16\r
5a24e806 17import java.util.List;\r
18\r
19import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
20\r
21public class FarPackage {\r
22 //\r
23 // Class member\r
24 //\r
25 private FarFileItem farFile;\r
26\r
27 private String guidValue;\r
28\r
29 private String version;\r
30\r
31 private String defaultPath;\r
32\r
33 private List<FarPlatformItem> farPlatformList;\r
34\r
35 private List<FarFileItem> contentList;\r
36\r
37 public String getDefaultPath() {\r
38 return defaultPath;\r
39 }\r
40\r
41 public void setDefaultPath(String defaultPath) {\r
42 this.defaultPath = defaultPath;\r
43 }\r
44\r
45 public FarFileItem getFarFile() {\r
46 return farFile;\r
47 }\r
48\r
49 public void setFarFile(FarFileItem farFile) {\r
50 this.farFile = farFile;\r
51 }\r
52\r
53 public List<FarPlatformItem> getFarPlatformList() {\r
54 return farPlatformList;\r
55 }\r
56\r
57 public void setFarPlatformList(List<FarPlatformItem> farPlatformList) {\r
58 this.farPlatformList = farPlatformList;\r
59 }\r
60\r
61 public String getGuidValue() {\r
62 return guidValue;\r
63 }\r
64\r
65 public void setGuidValue(String guidValue) {\r
66 this.guidValue = guidValue;\r
67 }\r
68\r
69 public String getVersion() {\r
70 return version;\r
71 }\r
72\r
73 public void setVersion(String version) {\r
74 this.version = version;\r
75 }\r
76\r
77 public List<FarFileItem> getContentList() {\r
78 return this.contentList;\r
79 }\r
80\r
81 public void setContentList(List<FarFileItem> contentList) {\r
82 this.contentList = contentList;\r
83 }\r
84\r
85 public boolean isIdentityPkg(PackageIdentification pkgId) {\r
ef6e2efe 86 //File file = new File(farFile.getRelativeFilename());\r
87 if (pkgId.getGuid().equalsIgnoreCase(guidValue) && pkgId.getVersion().equalsIgnoreCase(version)) {\r
5a24e806 88 return true;\r
89 }\r
90 return false;\r
91\r
92 }\r
93}\r