summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-01 14:56:44 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2006-08-01 14:56:44 +0000
commita513c5a8b4843dee582160545db1247aa9db8c69 (patch)
treef4b0d6e7dd7e1e3d63e16fd8426bed67fbc49577 /Tools
parentbc2628416cd8bb007c68520b2d45cf9601de0daa (diff)
downloadedk2-platforms-a513c5a8b4843dee582160545db1247aa9db8c69.tar.xz
Add new class ModulePcdInfoFromFpd.java
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1171 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/Source/PcdTools/org/tianocore/pcd/entity/ModulePcdInfoFromFpd.java48
1 files changed, 48 insertions, 0 deletions
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 <ModuleSA>'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 <ModuleSA> in FPD file.
+**/
+public class ModulePcdInfoFromFpd {
+ ///
+ /// Usage identification for a module
+ ///
+ public UsageIdentification usageId;
+
+ ///
+ /// <ModuleSA>'s <PcdBuildDefinition> information.
+ ///
+ public PcdBuildDefinition pcdBuildDefinition;
+
+ /**
+ Construct function.
+
+ @param usageId The usage instance's identification
+ @param pcdBuildDefinition The <PcdBuildDefinition> information in <ModuleSA> in FPD file.
+
+ **/
+ public ModulePcdInfoFromFpd(UsageIdentification usageId,
+ XmlObject pcdBuildDefinition) {
+ this.usageId = usageId;
+ this.pcdBuildDefinition = ((PcdBuildDefinitionDocument)pcdBuildDefinition).getPcdBuildDefinition();
+ }
+}