X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FPcdTools%2Forg%2Ftianocore%2Fpcd%2Fentity%2FUsageIdentification.java;fp=Tools%2FSource%2FPcdTools%2Forg%2Ftianocore%2Fpcd%2Fentity%2FUsageIdentification.java;h=0000000000000000000000000000000000000000;hp=0c54525661e9bf4482ca7529e592a1ad1cb4c6a7;hb=feccee87a78e68d575dbdf44b34ca0cb5a21ea8d;hpb=214b0d1914b48d651b25e58f321ddb77a46903b8 diff --git a/Tools/Source/PcdTools/org/tianocore/pcd/entity/UsageIdentification.java b/Tools/Source/PcdTools/org/tianocore/pcd/entity/UsageIdentification.java deleted file mode 100644 index 0c54525661..0000000000 --- a/Tools/Source/PcdTools/org/tianocore/pcd/entity/UsageIdentification.java +++ /dev/null @@ -1,105 +0,0 @@ -/** @file - UsageIdentification class. - - This class an identification for a PCD UsageInstance. - -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -**/ - -package org.tianocore.pcd.entity; - -/** - The identification for a UsageInstance. - It should be extend from ModuleIdentification in future. - -**/ -public class UsageIdentification { - /// - /// The module CName: one key of Identification - /// - public String moduleName; - - /// - /// The module Guid String: one key of Identification - /// - public String moduleGuid; - - /// - /// The package CName: one key of Identification - /// - public String packageName; - - /// - /// The package Guid: one key of Identification - /// - public String packageGuid; - - /// - /// Module's Arch: one key of Identification - /// - public String arch; - - /// - /// Module's version: one key of Identification - /// - public String version; - - /// - /// Module's type - /// - public String moduleType; - - /** - Constructor function for UsageIdentification class. - - @param moduleName The key of module's name - @param moduleGuid The key of module's GUID string - @param packageName The key of package's name - @param packageGuid The key of package's Guid - @param arch The architecture string - @param version The version String - @param moduleType The module type - **/ - public UsageIdentification (String moduleName, - String moduleGuid, - String packageName, - String packageGuid, - String arch, - String version, - String moduleType) { - this.moduleName = moduleName; - this.moduleGuid = moduleGuid; - this.packageName = packageName; - this.packageGuid = packageGuid; - this.arch = arch; - this.version = version; - this.moduleType = moduleType; - } - - /** - Generate the string for UsageIdentification - - @return the string value for UsageIdentification - **/ - public String toString() { - // - // Because currently transition schema not require write moduleGuid, package Name, Packge GUID in - // section, So currently no expect all paramter must be valid. - // BUGBUG: Because currently we can not get version from MSA, So ignore verison. - // - return(moduleName + "_" + - ((moduleGuid != null) ? moduleGuid.toLowerCase() : "NullModuleGuid") + "_" + - ((packageName != null) ? packageName : "NullPackageName") + "_" + - ((packageGuid != null) ? packageGuid.toLowerCase() : "NullPackageGuid") + "_" + - ((arch != null) ? arch : "NullArch") + "_" + - "NullVersion"); - } -}