- ///\r
- /// This parent that this usage instance belongs to.\r
- ///\r
- public Token parentToken;\r
- ///\r
- /// The usage of this token for platform or module.\r
- ///\r
- public Token.PCD_USAGE usage;\r
- ///\r
- /// Whether this usage instance inherit from library\r
- ///\r
- public boolean isInherit;\r
- ///\r
- /// The pcd type of this token for module.\r
- ///\r
- public Token.PCD_TYPE modulePcdType;\r
- ///\r
- /// The name of the module who contains this PCD.\r
- ///\r
- public String moduleName;\r
- ///\r
- /// The name of the package whose module contains this PCD.\r
- ///\r
- public String packageName;\r
- ///\r
- /// The component type for this usage instance.\r
- ///\r
- public int componentType;\r
- ///\r
- /// The default value defined in MSA has high prior than defined in SPD.\r
- ///\r
- public Object defaultValueInMSA;\r
- ///\r
- /// The default value defined in SPD.\r
- ///\r
- public Object defaultValueInSPD;\r
- ///\r
- /// Help text in MSA\r
- ///\r
- public String helpTextInMSA;\r
- ///\r
- /// Help text in SPD\r
- ///\r
- public String helpTextInSPD;\r
- ///\r
- /// Autogen string for header file.\r
- ///\r
- public String hAutogenStr;\r
- /**\r
- * Auotgen string for C code file.\r
- */\r
- public String cAutogenStr;\r
-\r
- /**\r
- Constructure function\r
- \r
- @param parentToken Member variable.\r
- @param usage Member variable.\r
- @param pcdType Member variable.\r
- @param componentType Member variable.\r
- @param defaultValueInMSA Member variable.\r
- @param defaultValueInSPD Member variable.\r
- @param helpTextInMSA Member variable.\r
- @param helpTextInSPD Member variable.\r
- @param moduleName Member variable.\r
- @param packageName Member variable.\r
- @param isInherit Member variable.\r
- **/\r
- public UsageInstance(\r
- Token parentToken,\r
- Token.PCD_USAGE usage,\r
- Token.PCD_TYPE pcdType,\r
- int componentType,\r
- Object defaultValueInMSA,\r
- Object defaultValueInSPD,\r
- String helpTextInMSA,\r
- String helpTextInSPD,\r
- String moduleName,\r
- String packageName,\r
- boolean isInherit\r
- )\r
- {\r
- this.parentToken = parentToken;\r
- this.usage = usage;\r
- this.modulePcdType = pcdType;\r
- this.componentType = componentType;\r
- this.defaultValueInMSA = defaultValueInMSA;\r
- this.defaultValueInSPD = defaultValueInSPD;\r
- this.helpTextInMSA = helpTextInMSA;\r
- this.helpTextInSPD = helpTextInSPD;\r
- this.moduleName = moduleName;\r
- this.packageName = packageName;\r
- this.isInherit = isInherit;\r
- }\r
+ ///\r
+ /// This parent that this usage instance belongs to.\r
+ ///\r
+ public Token parentToken;\r
+\r
+ ///\r
+ /// The name of the module who contains this PCD.\r
+ ///\r
+ public String moduleName;\r
+\r
+ ///\r
+ /// The GUID of the module who contains this PCD. \r
+ /// \r
+ public UUID moduleGUID;\r
+\r
+ ///\r
+ /// The name of the package whose module contains this PCD.\r
+ ///\r
+ public String packageName;\r
+\r
+ ///\r
+ /// The GUID of the package whose module contains this PCD.\r
+ /// \r
+ public UUID packageGUID;\r
+\r
+ ///\r
+ /// The PCD type defined for module \r
+ /// \r
+ public Token.PCD_TYPE modulePcdType;\r
+\r
+ ///\r
+ /// The arch string of module contains this PCD\r
+ ///\r
+ public String arch;\r
+\r
+ ///\r
+ /// The version of module contains this PCD\r
+ /// \r
+ public String version;\r
+\r
+ ///\r
+ /// The module type for this usage instance.\r
+ ///\r
+ public ModuleTypeDef.Enum moduleType;\r
+\r
+ ///\r
+ /// The value of the PCD in this usage instance. \r
+ /// \r
+ public String datum;\r
+\r
+ ///\r
+ /// The maxDatumSize could be different for same PCD in different module\r
+ /// But this case is allow for FeatureFlag, FixedAtBuild, PatchableInModule\r
+ /// type.\r
+ /// \r
+ public int maxDatumSize;\r