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
.build
.fpd
;
17 This class is used to identify a module with BaseName, GUID, Version, PackageName
22 public class FpdModuleIdentification
{
26 private String fvBinding
;
28 private String baseName
;
30 private String packageName
;
34 private String version
;
36 private String sequence
;
40 @param baseName the base name of the module
41 @param guid the GUID of the module
42 @param arch the ARCH of the module
44 public FpdModuleIdentification(String baseName
, String guid
, String arch
){
45 this.baseName
= baseName
;
51 Override java.lang.Object#equals.
53 <p>Currently, use BaseName and ARCH to identify a module. It will enhance
54 in the next version. </p>
56 @see java.lang.Object#equals(java.lang.Object)
58 public boolean equals(Object obj
) {
59 if (obj
instanceof FpdModuleIdentification
) {
60 FpdModuleIdentification moduleIdObj
= (FpdModuleIdentification
)obj
;
61 if ( baseName
.equalsIgnoreCase(moduleIdObj
.baseName
) && arch
.equalsIgnoreCase(moduleIdObj
.arch
)) {
68 return super.equals(obj
);
72 public void setArch(String arch
) {
76 public void setFvBinding(String fvBinding
) {
77 this.fvBinding
= fvBinding
;
80 public void setSequence(String sequence
) {
81 this.sequence
= sequence
;
84 public String
toString(){
85 return arch
+ ":" + guid
+ "_" + baseName
;
88 public void setBaseName(String baseName
) {
89 this.baseName
= baseName
;
92 public void setGuid(String guid
) {
96 public void setPackageName(String packageName
) {
97 this.packageName
= packageName
;
100 public void setVersion(String version
) {
101 this.version
= version
;
104 public String
getArch() {
108 public String
getBaseName() {
112 public String
getFvBinding() {
116 public String
getGuid() {
120 public String
getPackageName() {
124 public String
getSequence() {
128 public String
getVersion() {