Commit | Line | Data |
---|---|---|
eb1bab5b BH |
1 | /********************************************************************** |
2 | * Copyright (c) 2012 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Bernd Hufmann - Initial API and implementation | |
11 | **********************************************************************/ | |
9315aeee | 12 | package org.eclipse.linuxtools.internal.lttng2.core.control.model; |
eb1bab5b BH |
13 | |
14 | /** | |
eb1bab5b BH |
15 | * <p> |
16 | * Enumeration for enabled/disabled states. | |
17 | * </p> | |
dbd4432d BH |
18 | * |
19 | * @author Bernd Hufmann | |
eb1bab5b BH |
20 | */ |
21 | public enum TraceEnablement { | |
22 | ||
23 | // ------------------------------------------------------------------------ | |
24 | // Enum definition | |
25 | // ------------------------------------------------------------------------ | |
26 | DISABLED("disabled"), //$NON-NLS-1$ | |
27 | ENABLED("enabled"); //$NON-NLS-1$ | |
28 | ||
29 | // ------------------------------------------------------------------------ | |
30 | // Attributes | |
31 | // ------------------------------------------------------------------------ | |
32 | /** | |
33 | * Name of enum | |
34 | */ | |
35 | private final String fInName; | |
36 | ||
37 | // ------------------------------------------------------------------------ | |
38 | // Constuctors | |
39 | // ------------------------------------------------------------------------ | |
40 | ||
41 | /** | |
42 | * Private constructor | |
43 | * @param name the name of state | |
44 | */ | |
45 | private TraceEnablement(String name) { | |
46 | fInName = name; | |
47 | } | |
48 | ||
49 | // ------------------------------------------------------------------------ | |
50 | // Accessors | |
51 | // ------------------------------------------------------------------------ | |
52 | /** | |
53 | * @return state name | |
54 | */ | |
55 | public String getInName() { | |
56 | return fInName; | |
57 | } | |
58 | }; | |
59 |