From a513c5a8b4843dee582160545db1247aa9db8c69 Mon Sep 17 00:00:00 2001 From: klu2 Date: Tue, 1 Aug 2006 14:56:44 +0000 Subject: [PATCH] Add new class ModulePcdInfoFromFpd.java git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1171 6f19259b-4bc3-4df7-8a09-765794883524 --- .../pcd/entity/ModulePcdInfoFromFpd.java | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Tools/Source/PcdTools/org/tianocore/pcd/entity/ModulePcdInfoFromFpd.java 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(); + } +} -- 2.39.2