]>
Commit | Line | Data |
---|---|---|
a13899c5 | 1 | /** @file\r |
2 | \r | |
3 | The file is used to save basic information of platform\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 | |
15 | \r | |
16 | package org.tianocore.frameworkwizard.platform;\r | |
17 | \r | |
18 | import java.io.File;\r | |
19 | \r | |
20 | import org.tianocore.frameworkwizard.common.Identification;\r | |
21 | \r | |
22 | public class PlatformIdentification extends Identification{\r | |
23 | \r | |
24 | private File fpdFile;\r | |
25 | \r | |
26 | public PlatformIdentification(String name, String guid, String version, String path){\r | |
27 | super(name, guid, version, path);\r | |
28 | }\r | |
29 | \r | |
30 | public PlatformIdentification(String name, String guid, String version, File fpdFile){\r | |
31 | super(name, guid, version);\r | |
32 | this.fpdFile = fpdFile;\r | |
33 | }\r | |
34 | \r | |
35 | public PlatformIdentification(Identification id){\r | |
36 | super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r | |
37 | }\r | |
38 | \r | |
39 | public String toString(){\r | |
40 | return "Platform " + this.getName() + "[" + this.getGuid() + "]";\r | |
41 | }\r | |
42 | \r | |
43 | public void setFpdFile(File fpdFile) {\r | |
44 | this.fpdFile = fpdFile;\r | |
45 | }\r | |
46 | \r | |
47 | public File getFpdFile() {\r | |
48 | return fpdFile;\r | |
49 | }\r | |
50 | } |