]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/FarPackage.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Java / 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.util.List;
18
19 import org.tianocore.frameworkwizard.packaging.PackageIdentification;
20
21 public class FarPackage {
22 //
23 // Class member
24 //
25 private FarFileItem farFile;
26
27 private String guidValue;
28
29 private String version;
30
31 private String defaultPath;
32
33 private List<FarPlatformItem> farPlatformList;
34
35 private List<FarFileItem> contentList;
36
37 public String getDefaultPath() {
38 return defaultPath;
39 }
40
41 public void setDefaultPath(String defaultPath) {
42 this.defaultPath = defaultPath;
43 }
44
45 public FarFileItem getFarFile() {
46 return farFile;
47 }
48
49 public void setFarFile(FarFileItem farFile) {
50 this.farFile = farFile;
51 }
52
53 public List<FarPlatformItem> getFarPlatformList() {
54 return farPlatformList;
55 }
56
57 public void setFarPlatformList(List<FarPlatformItem> farPlatformList) {
58 this.farPlatformList = farPlatformList;
59 }
60
61 public String getGuidValue() {
62 return guidValue;
63 }
64
65 public void setGuidValue(String guidValue) {
66 this.guidValue = guidValue;
67 }
68
69 public String getVersion() {
70 return version;
71 }
72
73 public void setVersion(String version) {
74 this.version = version;
75 }
76
77 public List<FarFileItem> getContentList() {
78 return this.contentList;
79 }
80
81 public void setContentList(List<FarFileItem> contentList) {
82 this.contentList = contentList;
83 }
84
85 public boolean isIdentityPkg(PackageIdentification pkgId) {
86 //File file = new File(farFile.getRelativeFilename());
87 if (pkgId.getGuid().equalsIgnoreCase(guidValue) && pkgId.getVersion().equalsIgnoreCase(version)) {
88 return true;
89 }
90 return false;
91
92 }
93 }