]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/FarPlatformItem.java
Changed spelling to manifest
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / far / FarPlatformItem.java
1 /** @file
2
3 The file is used to save <farPlatform> 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 org.tianocore.frameworkwizard.platform.PlatformIdentification;
18
19 public class FarPlatformItem {
20 //
21 // class member
22 //
23 private FarFileItem farFile;
24
25 private String guidValue;
26
27 private String version;
28
29 public FarFileItem getFarFile() {
30 return farFile;
31 }
32
33 public void setFarFile(FarFileItem farFile) {
34 this.farFile = farFile;
35 }
36
37 public String getGuidValue() {
38 return guidValue;
39 }
40
41 public void setGuidValue(String guidValue) {
42 this.guidValue = guidValue;
43 }
44
45 public String getVersion() {
46 return version;
47 }
48
49 public void setVersion(String version) {
50 this.version = version;
51 }
52
53 public boolean isIdentityPlf(PlatformIdentification plfId) {
54 if (plfId.getGuid() == guidValue && plfId.getVersion() == version) {
55 return true;
56 }
57 return false;
58
59 }
60 }