]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/PackageIdentification.java
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@671 6f19259b...
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / packaging / PackageIdentification.java
1 /** @file
2
3 The file is used to save basic information of package
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
16 package org.tianocore.frameworkwizard.packaging;
17 import java.io.File;
18
19 import org.tianocore.frameworkwizard.common.Identification;
20
21 public class PackageIdentification extends Identification{
22
23 //
24 // It is optional
25 //
26 private File spdFile;
27
28 public PackageIdentification(String name, String guid, String version){
29 super(name, guid, version);
30 }
31
32 public PackageIdentification(String name, String guid, String version, String path){
33 super(name, guid, version, path);
34 }
35
36 public PackageIdentification(Identification id){
37 super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());
38 }
39
40 public PackageIdentification(String name, String guid, String version, File spdFile){
41 super(name, guid, version);
42 this.spdFile = spdFile;
43 }
44
45 public File getSpdFile() {
46 return spdFile;
47 }
48
49 public String toString(){
50 return "Package " + this.getName() + "[" + this.getGuid() + "]";
51 }
52
53 public void setSpdFile(File spdFile) {
54 this.spdFile = spdFile;
55 }
56
57 public String getPackageDir(){
58 return spdFile.getParent();
59 }
60 }