]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/ModuleIdentification.java
EDKT96.
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / Identifications / ModuleIdentification.java
CommitLineData
a13899c5 1/** @file\r
2 \r
3 The file is used to save basic information of module\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
79cb6fdb 16package org.tianocore.frameworkwizard.module.Identifications;\r
a13899c5 17\r
18\r
79cb6fdb 19import org.tianocore.frameworkwizard.common.Identifications.Identification;\r
a13899c5 20import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
21\r
22public class ModuleIdentification extends Identification {\r
23 \r
24 private PackageIdentification packageId;\r
25 \r
26 public ModuleIdentification(String name, String guid, String version, String path) {\r
27 super(name, guid, version, path);\r
28 }\r
29 \r
30 public ModuleIdentification(Identification id) {\r
31 super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
32 }\r
33 \r
34 public ModuleIdentification(String name, String guid, String version, String path, PackageIdentification packageId){\r
35 super(name, guid, version, path);\r
36 this.packageId = packageId;\r
37 }\r
38 \r
39 public ModuleIdentification(Identification id, PackageIdentification packageId) {\r
40 super(id.getName(), id.getGuid(), id.getVersion(), id.getPath());\r
41 this.packageId = packageId;\r
42 }\r
43 \r
44// public boolean equals(Object obj) {\r
45// if (obj instanceof Identification) {\r
46// Identification id = (Identification)obj;\r
47// if ( this.getName().equalsIgnoreCase(id.getName())) {\r
48// return true;\r
49// }\r
50// // and package is the same one\r
51// return false;\r
52// }\r
53// else {\r
54// return super.equals(obj);\r
55// }\r
56// }\r
57 \r
58 public String toString(){\r
59 return "Module " + this.getName() + "[" + this.getGuid() + "] in package " + packageId;\r
60 }\r
61\r
62 public PackageIdentification getPackageId() {\r
63 return packageId;\r
64 }\r
65\r
66 public void setPackageId(PackageIdentification packageId) {\r
67 this.packageId = packageId;\r
68 }\r
69}\r