Add new class ModulePcdInfoFromFpd.java
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Aug 2006 14:56:44 +0000 (14:56 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 1 Aug 2006 14:56:44 +0000 (14:56 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1171 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/PcdTools/org/tianocore/pcd/entity/ModulePcdInfoFromFpd.java [new file with mode: 0644]

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 (file)
index 0000000..09abb6f
--- /dev/null
@@ -0,0 +1,48 @@
+/** @file\r
+  ModulePcdInfoFromFpd class.\r
+\r
+  The interface parameter from <ModuleSA>'s Pcd information got from global data.\r
+\r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+package org.tianocore.pcd.entity;\r
+\r
+import org.tianocore.PcdBuildDefinitionDocument;\r
+import org.tianocore.PcdBuildDefinitionDocument.PcdBuildDefinition;\r
+import org.apache.xmlbeans.XmlObject;\r
+\r
+/**\r
+   PCD build information in <ModuleSA> in FPD file.  \r
+**/\r
+public class ModulePcdInfoFromFpd {\r
+    ///\r
+    /// Usage identification for a module\r
+    /// \r
+    public UsageIdentification   usageId;\r
+\r
+    ///\r
+    /// <ModuleSA>'s <PcdBuildDefinition> information.\r
+    /// \r
+    public PcdBuildDefinition    pcdBuildDefinition;\r
+\r
+    /**\r
+       Construct function.\r
+\r
+       @param usageId               The usage instance's identification\r
+       @param pcdBuildDefinition    The <PcdBuildDefinition> information in <ModuleSA> in FPD file.\r
+\r
+    **/\r
+    public ModulePcdInfoFromFpd(UsageIdentification usageId,\r
+                                XmlObject           pcdBuildDefinition) {\r
+        this.usageId            = usageId;\r
+        this.pcdBuildDefinition = ((PcdBuildDefinitionDocument)pcdBuildDefinition).getPcdBuildDefinition();\r
+    }\r
+}\r