1 /**********************************************************************
2 * Copyright (c) 2014 Ericsson
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
10 * Jonathan Rajotte - Initial API and implementation
11 **********************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.lttng2
.control
.core
.model
;
16 * Trace domain type enumeration.
18 * @author Jonathan Rajotte
20 public enum TraceDomainType
{
21 /** Domain type : ust */
22 UST("ust"), //$NON-NLS-1$
23 /** Domain type : kernel */
24 KERNEL("kernel"), //$NON-NLS-1$
25 /** Domain type : jul */
26 JUL("jul"), //$NON-NLS-1$
27 /** Unknown domain type */
28 UNKNOWN("Unknown domain type"); //$NON-NLS-1$
30 private final String fInName
;
32 private TraceDomainType(String name
) {
39 * @return The type's name
41 public String
getInName() {
46 * Return the corresponding {@link TraceDomainType} of string miName
49 * name of the Trace domain type to look for
50 * @return the corresponding {@link TraceDomainType}
52 public static TraceDomainType
valueOfString(String miName
) {
54 throw new IllegalArgumentException();
56 for (TraceDomainType tdType
: TraceDomainType
.values()) {
57 if (tdType
.getInName().equalsIgnoreCase(miName
)) {
This page took 0.050456 seconds and 5 git commands to generate.