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