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 / ToolChainAttribute.java
1 /** @file
2 ToolChainAttribute class
3
4 This file is to define enumeration value for tool chain attribute 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 ToolChainAttribute is used to define the enumeration value for the attributes
21 used in tool chain definition file.
22
23 **/
24 public class ToolChainAttribute {
25 private static int nextValue = 0;
26
27 ///
28 /// "NAME", "PATH", "DPATH", "SPATH", "EXT", "FAMILY", "FLAGS"
29 ///
30 public final static ToolChainAttribute NAME = new ToolChainAttribute("NAME");
31 public final static ToolChainAttribute PATH = new ToolChainAttribute("PATH");
32 public final static ToolChainAttribute DPATH = new ToolChainAttribute("DPATH");
33 public final static ToolChainAttribute SPATH = new ToolChainAttribute("SPATH");
34 public final static ToolChainAttribute EXT = new ToolChainAttribute("EXT");
35 public final static ToolChainAttribute FAMILY = new ToolChainAttribute("FAMILY");
36 public final static ToolChainAttribute FLAGS = new ToolChainAttribute("FLAGS");
37
38 private final String name;
39 public final int value = nextValue++;
40
41 /**
42 * Default constructor
43 */
44 private ToolChainAttribute(String name) {
45 this.name = name;
46 }
47
48 public String toString() {
49 return name;
50 }
51 }
52