Commit | Line | Data |
---|---|---|
ccc66d01 | 1 | /********************************************************************** |
54f2dcc0 | 2 | * Copyright (c) 2012, 2014 Ericsson |
b0318660 | 3 | * |
ccc66d01 BH |
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 | |
b0318660 AM |
8 | * |
9 | * Contributors: | |
ccc66d01 BH |
10 | * Bernd Hufmann - Initial API and implementation |
11 | *********************************************************************/ | |
8e8c0226 | 12 | package org.eclipse.linuxtools.internal.lttng2.control.core.model; |
ccc66d01 BH |
13 | |
14 | /** | |
ccc66d01 BH |
15 | * <p> |
16 | * Type of log Level enumeration. | |
17 | * </p> | |
b0318660 | 18 | * |
dbd4432d | 19 | * @author Bernd Hufmann |
ccc66d01 BH |
20 | */ |
21 | public enum LogLevelType { | |
b0318660 | 22 | |
ccc66d01 BH |
23 | // ------------------------------------------------------------------------ |
24 | // Enum definition | |
25 | // ------------------------------------------------------------------------ | |
b0318660 | 26 | /** range of log levels [0,logLevel] */ |
54f2dcc0 | 27 | LOGLEVEL("<="), //$NON-NLS-1$ |
ccc66d01 | 28 | |
b0318660 | 29 | /** single log level */ |
54f2dcc0 | 30 | LOGLEVEL_ONLY("=="), //$NON-NLS-1$ |
ccc66d01 | 31 | |
b0318660 | 32 | /** no log level */ |
54f2dcc0 BH |
33 | LOGLEVEL_NONE(""); //$NON-NLS-1$ |
34 | ||
35 | // ------------------------------------------------------------------------ | |
36 | // Constuctors | |
37 | // ------------------------------------------------------------------------ | |
38 | ||
39 | /** | |
40 | * Private constructor | |
41 | * @param name the name of state | |
42 | */ | |
43 | private LogLevelType(String shortName) { | |
44 | fShortName = shortName; | |
45 | } | |
46 | ||
47 | // ------------------------------------------------------------------------ | |
48 | // Attributes | |
49 | // ------------------------------------------------------------------------ | |
50 | /** | |
51 | * Name of enum. | |
52 | */ | |
53 | private final String fShortName; | |
54 | ||
55 | // ------------------------------------------------------------------------ | |
56 | // Accessors | |
57 | // ------------------------------------------------------------------------ | |
58 | /** | |
59 | * @return short string | |
60 | */ | |
61 | public String getShortName() { | |
62 | return fShortName; | |
63 | } | |
64 | ||
b0318660 | 65 | } |