77e15c2b23fecb8c1645f521c8129cc28c841992
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.core / src / org / eclipse / linuxtools / internal / lttng2 / control / core / model / TraceEnablement.java
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 **********************************************************************/
12 package org.eclipse.linuxtools.internal.lttng2.control.core.model;
13
14 /**
15 * <p>
16 * Enumeration for enabled/disabled states.
17 * </p>
18 *
19 * @author Bernd Hufmann
20 */
21 public enum TraceEnablement {
22
23 // ------------------------------------------------------------------------
24 // Enum definition
25 // ------------------------------------------------------------------------
26 /** Tracing is disabled */
27 DISABLED("disabled"), //$NON-NLS-1$
28 /** Tracing is enabled */
29 ENABLED("enabled"); //$NON-NLS-1$
30
31 // ------------------------------------------------------------------------
32 // Attributes
33 // ------------------------------------------------------------------------
34 /**
35 * Name of enum
36 */
37 private final String fInName;
38
39 // ------------------------------------------------------------------------
40 // Constuctors
41 // ------------------------------------------------------------------------
42
43 /**
44 * Private constructor
45 * @param name the name of state
46 */
47 private TraceEnablement(String name) {
48 fInName = name;
49 }
50
51 // ------------------------------------------------------------------------
52 // Accessors
53 // ------------------------------------------------------------------------
54 /**
55 * @return state name
56 */
57 public String getInName() {
58 return fInName;
59 }
60 }
This page took 0.034493 seconds and 4 git commands to generate.