3 The file is used to save <farPackage> information.
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
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.
15 package org
.tianocore
.frameworkwizard
.far
;
17 import java
.util
.List
;
19 import org
.tianocore
.frameworkwizard
.packaging
.PackageIdentification
;
21 public class FarPackage
{
25 private FarFileItem farFile
;
27 private String guidValue
;
29 private String version
;
31 private String defaultPath
;
33 private List
<FarPlatformItem
> farPlatformList
;
35 private List
<FarFileItem
> contentList
;
37 public String
getDefaultPath() {
41 public void setDefaultPath(String defaultPath
) {
42 this.defaultPath
= defaultPath
;
45 public FarFileItem
getFarFile() {
49 public void setFarFile(FarFileItem farFile
) {
50 this.farFile
= farFile
;
53 public List
<FarPlatformItem
> getFarPlatformList() {
54 return farPlatformList
;
57 public void setFarPlatformList(List
<FarPlatformItem
> farPlatformList
) {
58 this.farPlatformList
= farPlatformList
;
61 public String
getGuidValue() {
65 public void setGuidValue(String guidValue
) {
66 this.guidValue
= guidValue
;
69 public String
getVersion() {
73 public void setVersion(String version
) {
74 this.version
= version
;
77 public List
<FarFileItem
> getContentList() {
78 return this.contentList
;
81 public void setContentList(List
<FarFileItem
> contentList
) {
82 this.contentList
= contentList
;
85 public boolean isIdentityPkg(PackageIdentification pkgId
) {
86 //File file = new File(farFile.getRelativeFilename());
87 if (pkgId
.getGuid().equalsIgnoreCase(guidValue
) && pkgId
.getVersion().equalsIgnoreCase(version
)) {