From: klu2 Date: Tue, 1 Aug 2006 14:56:44 +0000 (+0000) Subject: Add new class ModulePcdInfoFromFpd.java X-Git-Tag: edk2-stable201903~24701 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=a513c5a8b4843dee582160545db1247aa9db8c69;ds=sidebyside Add new class ModulePcdInfoFromFpd.java git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1171 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/PcdTools/org/tianocore/pcd/entity/ModulePcdInfoFromFpd.java b/Tools/Source/PcdTools/org/tianocore/pcd/entity/ModulePcdInfoFromFpd.java new file mode 100644 index 0000000000..09abb6f956 --- /dev/null +++ b/Tools/Source/PcdTools/org/tianocore/pcd/entity/ModulePcdInfoFromFpd.java @@ -0,0 +1,48 @@ +/** @file + ModulePcdInfoFromFpd class. + + The interface parameter from 's Pcd information got from global data. + +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; + +import org.tianocore.PcdBuildDefinitionDocument; +import org.tianocore.PcdBuildDefinitionDocument.PcdBuildDefinition; +import org.apache.xmlbeans.XmlObject; + +/** + PCD build information in in FPD file. +**/ +public class ModulePcdInfoFromFpd { + /// + /// Usage identification for a module + /// + public UsageIdentification usageId; + + /// + /// 's information. + /// + public PcdBuildDefinition pcdBuildDefinition; + + /** + Construct function. + + @param usageId The usage instance's identification + @param pcdBuildDefinition The information in in FPD file. + + **/ + public ModulePcdInfoFromFpd(UsageIdentification usageId, + XmlObject pcdBuildDefinition) { + this.usageId = usageId; + this.pcdBuildDefinition = ((PcdBuildDefinitionDocument)pcdBuildDefinition).getPcdBuildDefinition(); + } +}