]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/PcdTools/org/tianocore/pcd/entity/SkuInstance.java
Because Pcd entity, exception and some action package are shared by Building tools...
[mirror_edk2.git] / Tools / Source / PcdTools / org / tianocore / pcd / entity / SkuInstance.java
diff --git a/Tools/Source/PcdTools/org/tianocore/pcd/entity/SkuInstance.java b/Tools/Source/PcdTools/org/tianocore/pcd/entity/SkuInstance.java
new file mode 100644 (file)
index 0000000..181e321
--- /dev/null
@@ -0,0 +1,45 @@
+/** @file\r
+  SkuInstance class.\r
+\r
+  Sku instance contains ID and value, A pcd token maybe contains more than one Sku instance.\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
+/** Sku instance contains ID and value, A pcd token maybe contains more than one Sku instance.\r
+**/\r
+public class SkuInstance {\r
+    ///\r
+    /// The id number of this SKU instance\r
+    ///\r
+    public int              id;\r
+    ///\r
+    /// The value of this SKU instance\r
+    ///\r
+    public DynamicTokenValue value;\r
+\r
+    /**\r
+      Constructure function\r
+\r
+      @param id     sku id \r
+      @param value  sku value for this id.\r
+    **/\r
+    public SkuInstance(int id, DynamicTokenValue value) {\r
+        this.id    = id;\r
+        this.value = value;\r
+    }\r
+\r
+    public SkuInstance() {\r
+        this.id    = 0;\r
+        this.value = new DynamicTokenValue();\r
+    }\r
+}\r