]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/packaging/PackageIdentification.java
3 The file is used to save basic information of package
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.
16 package org
.tianocore
.frameworkwizard
.packaging
;
19 import org
.tianocore
.frameworkwizard
.common
.Identifications
.Identification
;
21 public class PackageIdentification
extends Identification
{
28 public PackageIdentification(String name
, String guid
, String version
){
29 super(name
, guid
, version
);
32 public PackageIdentification(String name
, String guid
, String version
, String path
){
33 super(name
, guid
, version
, path
);
36 public PackageIdentification(Identification id
){
37 super(id
.getName(), id
.getGuid(), id
.getVersion(), id
.getPath());
40 public PackageIdentification(String name
, String guid
, String version
, File spdFile
){
41 super(name
, guid
, version
);
42 this.spdFile
= spdFile
;
45 public File
getSpdFile() {
49 public String
toString(){
50 return "Package " + this.getName() + "[" + this.getGuid() + "]";
53 public void setSpdFile(File spdFile
) {
54 this.spdFile
= spdFile
;
57 public String
getPackageDir(){
58 return spdFile
.getParent();