1. Update to just keep several line JAVA related msg; 2. Remove file PropertyManager...
[mirror_edk2.git] / Tools / Java / Source / GenBuild / org / tianocore / build / toolchain / ToolChainElement.java
1 /** @file
2 ToolChainElement class
3
4 ToolChainElement class is defining enumeration value of key part names.
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.build.toolchain;
17
18 /**
19
20 This class is an enumeration definition for key elements in tool chain definition
21 file.
22
23 **/
24 public class ToolChainElement {
25 private static int nextValue = 0;
26
27 //
28 // "TARGET", "TOOLCHAIN", "ARCH", "TOOLCODE", "ATTRIBUTE"
29 //
30 public final static ToolChainElement TARGET = new ToolChainElement("TARGET");
31 public final static ToolChainElement TOOLCHAIN = new ToolChainElement("TOOLCHAIN");
32 public final static ToolChainElement ARCH = new ToolChainElement("ARCH");
33 public final static ToolChainElement TOOLCODE = new ToolChainElement("TOOLCODE");
34 public final static ToolChainElement ATTRIBUTE = new ToolChainElement("ATTRIBUTE");
35
36 private final String name;
37 public final int value = nextValue++;
38
39 /**
40 * Default constructor
41 */
42 private ToolChainElement(String name) {
43 this.name = name;
44 }
45
46 public String toString() {
47 return name;
48 }
49 }
50
51
52
53
54