3 The file is used to save basic information of module
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
.module
.Identification
;
19 import org
.tianocore
.frameworkwizard
.common
.Identification
;
20 import org
.tianocore
.frameworkwizard
.packaging
.PackageIdentification
;
22 public class ModuleIdentification
extends Identification
{
24 private PackageIdentification packageId
;
26 public ModuleIdentification(String name
, String guid
, String version
, String path
) {
27 super(name
, guid
, version
, path
);
30 public ModuleIdentification(Identification id
) {
31 super(id
.getName(), id
.getGuid(), id
.getVersion(), id
.getPath());
34 public ModuleIdentification(String name
, String guid
, String version
, String path
, PackageIdentification packageId
){
35 super(name
, guid
, version
, path
);
36 this.packageId
= packageId
;
39 public ModuleIdentification(Identification id
, PackageIdentification packageId
) {
40 super(id
.getName(), id
.getGuid(), id
.getVersion(), id
.getPath());
41 this.packageId
= packageId
;
44 // public boolean equals(Object obj) {
45 // if (obj instanceof Identification) {
46 // Identification id = (Identification)obj;
47 // if ( this.getName().equalsIgnoreCase(id.getName())) {
50 // // and package is the same one
54 // return super.equals(obj);
58 public String
toString(){
59 return "Module " + this.getName() + "[" + this.getGuid() + "] in package " + packageId
;
62 public PackageIdentification
getPackageId() {
66 public void setPackageId(PackageIdentification packageId
) {
67 this.packageId
= packageId
;