2 Java class FpdModuleIdentification is used to present a module identification
3 from BaseName, GUID, Version, PackageName, and ARCH.
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.
14 package org
.tianocore
.frameworkwizard
.platform
.ui
.id
;
18 This class is used to identify a module with BaseName, GUID, Version, PackageName
23 public class FpdModuleIdentification
{
27 private String fvBinding
= "NULL"; // Optional
29 private String sequence
= "0"; // Optional
31 private ModuleIdentification module
;
33 public FpdModuleIdentification(String arch
, String fvBinding
, String sequence
, ModuleIdentification module
){
35 this.fvBinding
= fvBinding
;
36 this.sequence
= sequence
;
40 public FpdModuleIdentification(ModuleIdentification module
, String arch
){
45 Override java.lang.Object#equals.
47 <p>Currently, use BaseName and ARCH to identify a module. It will enhance
48 in the next version. </p>
50 @see java.lang.Object#equals(java.lang.Object)
52 public boolean equals(Object obj
) {
53 if (obj
instanceof FpdModuleIdentification
) {
54 FpdModuleIdentification moduleIdObj
= (FpdModuleIdentification
)obj
;
55 if ( module
.equals(moduleIdObj
.module
) && arch
.equalsIgnoreCase(moduleIdObj
.arch
)) {
61 return super.equals(obj
);
65 public void setFvBinding(String fvBinding
) {
66 this.fvBinding
= fvBinding
;
69 public void setSequence(String sequence
) {
70 this.sequence
= sequence
;
73 public String
toString(){
74 return arch
+ ":" + module
;
77 public String
getFvBinding() {
81 public String
getSequence() {
85 public ModuleIdentification
getModule() {
89 public void setModule(ModuleIdentification module
) {
93 public String
getArch() {
97 public void setArch(String arch
) {
101 public int hashCode(){
102 return module
.hashCode();