]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/PcdTools/org/tianocore/pcd/entity/SkuInstance.java
Abstract the logic of Platform pcd preprocess according to FPD file to a class. And...
[mirror_edk2.git] / Tools / Source / PcdTools / org / tianocore / pcd / entity / SkuInstance.java
1 /** @file
2 SkuInstance class.
3
4 Sku instance contains ID and value, A pcd token maybe contains more than one Sku instance.
5
6 Copyright (c) 2006, Intel Corporation
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
11
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14
15 **/
16 package org.tianocore.pcd.entity;
17
18 /** Sku instance contains ID and value, A pcd token maybe contains more than one Sku instance.
19 **/
20 public class SkuInstance {
21 ///
22 /// The id number of this SKU instance
23 ///
24 public int id;
25
26 ///
27 /// The value of this SKU instance
28 ///
29 public DynamicTokenValue value;
30
31 /**
32 Constructure function
33
34 @param id sku id
35 @param value sku value for this id.
36 **/
37 public SkuInstance(int id, DynamicTokenValue value) {
38 this.id = id;
39 this.value = value;
40 }
41
42 /**
43 Default constructor function.
44 **/
45 public SkuInstance() {
46 this.id = 0;
47 this.value = new DynamicTokenValue();
48 }
49 }