X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Tools%2FSource%2FPcdTools%2Forg%2Ftianocore%2Fpcd%2Fentity%2FDynamicTokenValue.java;fp=Tools%2FSource%2FPcdTools%2Forg%2Ftianocore%2Fpcd%2Fentity%2FDynamicTokenValue.java;h=175fb1a7f5cdab24537d53effdbd13452548e963;hp=e8fb8e837dea3f16a0b517a8817c351dc3816cdc;hb=bc2628416cd8bb007c68520b2d45cf9601de0daa;hpb=af98370ea4e0df114beae0707987f9426b1880cd diff --git a/Tools/Source/PcdTools/org/tianocore/pcd/entity/DynamicTokenValue.java b/Tools/Source/PcdTools/org/tianocore/pcd/entity/DynamicTokenValue.java index e8fb8e837d..175fb1a7f5 100644 --- a/Tools/Source/PcdTools/org/tianocore/pcd/entity/DynamicTokenValue.java +++ b/Tools/Source/PcdTools/org/tianocore/pcd/entity/DynamicTokenValue.java @@ -2,17 +2,17 @@ DynamicTokenValue class. This module contains the value type of a dynamic token. - + 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 java.util.List; @@ -61,40 +61,43 @@ public class DynamicTokenValue { /// /// The default value for HII case. - /// + /// public String hiiDefaultValue; /// + /// --------------------------------------------------------------------- /// Following member is for VPD case. - /// BUGBUG: Consider 64 bit integer by using java.math.BigInteger. - /// + /// --------------------------------------------------------------------- + /// public String vpdOffset; - /// + /// --------------------------------------------------------------------- /// Following member is for default case. - /// + /// --------------------------------------------------------------------- public String value; + /** + Constructor function for DynamicTokenValue class. + + **/ public DynamicTokenValue() { - this.type = VALUE_TYPE.DEFAULT_TYPE; - this.variableName = null; - this.variableGuid = null; - this.variableOffset = null; - this.hiiDefaultValue = null; - - this.vpdOffset = null; - - this.value = null; + type = VALUE_TYPE.DEFAULT_TYPE; + variableName = null; + variableGuid = null; + variableOffset = null; + hiiDefaultValue = null; + vpdOffset = null; + value = null; } /** Set the HII case data. - - @param variableName - @param variableGuid - @param variableOffset - @param hiiDefaultValue - */ + + @param variableName The variable name + @param variableGuid The variable guid + @param variableOffset The offset of value in this variable + @param hiiDefaultValue Default value for this PCD + **/ public void setHiiData(List variableName, UUID variableGuid, String variableOffset, @@ -109,17 +112,16 @@ public class DynamicTokenValue { /** Get the string like L"xxx" for a variable Name. - + BUGBUG: In fact, it is not correctly, variable name should be treated as unicode UINT16 array. - + @return String */ - public String getStringOfVariableName() + public String getStringOfVariableName() throws EntityException { String str; int index, num; - char ch; str = ""; for (index = 0; index < variableName.size(); index ++) { @@ -135,7 +137,7 @@ public class DynamicTokenValue { /** Set Vpd case data. - + @param vpdOffset */ public void setVpdData(String vpdOffset) { @@ -146,7 +148,7 @@ public class DynamicTokenValue { /** Set default case data. - + @param value */ public void setValue(String value) {