\r
import org.tianocore.pcd.exception.EntityException;\r
\r
-/** \r
+/**\r
This class is to descript a value type of dynamic PCD.\r
For a dynamic or dynamicEx type PCD data, the value type can be:\r
1) Hii type: the value of dynamic or dynamicEx is stored into a variable.\r
///\r
/// Enumeration macro defintion for value type.\r
///\r
- public enum VALUE_TYPE {HII_TYPE, VPD_TYPE, DEFAULT_TYPE}\r
+ public static enum VALUE_TYPE {HII_TYPE, VPD_TYPE, DEFAULT_TYPE}\r
\r
///\r
/// The value type maybe:\r
/// HII_TYPE: the value stored into variable area.\r
/// VPD_TYPE: the value stored into OEM specific area.\r
/// DEFAULT_TYPE: the value stored into PCD runtime database.\r
- /// \r
+ ///\r
public VALUE_TYPE type;\r
\r
///\r
/// ---------------------------------------------------------------------\r
- /// Following member is for HII case. The value of HII case will be put \r
+ /// Following member is for HII case. The value of HII case will be put\r
/// into variable area in flash.\r
/// ---------------------------------------------------------------------\r
///\r
\r
///\r
/// The default value of this PCD in default case.\r
- /// \r
+ ///\r
public String value;\r
\r
/**\r
Constructor function for DynamicTokenValue class.\r
- \r
+\r
**/\r
public DynamicTokenValue() {\r
type = VALUE_TYPE.DEFAULT_TYPE;\r
/**\r
Set the HII case data.\r
\r
- @param variableName The variable name \r
+ @param variableName The variable name\r
@param variableGuid The variable guid\r
@param variableOffset The offset of value in this variable\r
@param hiiDefaultValue Default value for this PCD\r
BUGBUG: In fact, it is not correctly, variable name should be\r
treated as unicode UINT16 array.\r
\r
- @return String \r
+ @return String\r
**/\r
public String getStringOfVariableName()\r
throws EntityException {\r
for (index = 0; index < size; index++) {\r
num = Integer.decode(variableName.get(index).toString());\r
if ((num > 127 ) || (num < 0)) {\r
- throw new EntityException(String.format("variable name contains >0x80 character, now is not support!"));\r
+ throw new EntityException(String.format("The variable name contains more than 0x80 characters; this is not supported at thist time!"));\r
}\r
str += (char)num;\r
}\r