]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/PcdTools/org/tianocore/pcd/entity/DynamicTokenValue.java
1, Make exception string friendly, readable.
[mirror_edk2.git] / Tools / Source / PcdTools / org / tianocore / pcd / entity / DynamicTokenValue.java
index 2de993d5111d9242ff12b2f85163b813cea77546..0ed76b3ebe82925ae61957d39a1b461774e14244 100644 (file)
@@ -20,7 +20,7 @@ import java.util.UUID;
 \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
@@ -33,19 +33,19 @@ public class DynamicTokenValue {
     ///\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
@@ -87,12 +87,12 @@ public class DynamicTokenValue {
 \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
@@ -107,7 +107,7 @@ public class DynamicTokenValue {
     /**\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
@@ -130,7 +130,7 @@ public class DynamicTokenValue {
        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