blob: a4f65c31ca8202b03a5ca148d62fdd088eee34fb [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Based on ideas from Xtext, Xtend, Xcore
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - Initial implementation
*
*/
package org.eclipse.osbp.xtext.messagedsl;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Automatic Output Enum</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.osbp.xtext.messagedsl.MessageDSLPackage#getAutomaticOutputEnum()
* @model
* @generated
*/
public enum AutomaticOutputEnum implements Enumerator {
/**
* The '<em><b>LOG TRACE</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LOG_TRACE_VALUE
* @generated
* @ordered
*/
LOG_TRACE(0, "LOG_TRACE", "log-trace"),
/**
* The '<em><b>LOG DEBUG</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LOG_DEBUG_VALUE
* @generated
* @ordered
*/
LOG_DEBUG(0, "LOG_DEBUG", "log-debug"),
/**
* The '<em><b>LOG INFO</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LOG_INFO_VALUE
* @generated
* @ordered
*/
LOG_INFO(0, "LOG_INFO", "log-info"),
/**
* The '<em><b>LOG WARN</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LOG_WARN_VALUE
* @generated
* @ordered
*/
LOG_WARN(0, "LOG_WARN", "log-warn"),
/**
* The '<em><b>LOG ERROR</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #LOG_ERROR_VALUE
* @generated
* @ordered
*/
LOG_ERROR(0, "LOG_ERROR", "log-error"),
/**
* The '<em><b>SHOW INFO</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SHOW_INFO_VALUE
* @generated
* @ordered
*/
SHOW_INFO(0, "SHOW_INFO", "show-info"),
/**
* The '<em><b>SHOW WARN</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SHOW_WARN_VALUE
* @generated
* @ordered
*/
SHOW_WARN(0, "SHOW_WARN", "show-warn"),
/**
* The '<em><b>SHOW ERROR</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #SHOW_ERROR_VALUE
* @generated
* @ordered
*/
SHOW_ERROR(0, "SHOW_ERROR", "show-error");
/**
* The '<em><b>LOG TRACE</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>LOG TRACE</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LOG_TRACE
* @model literal="log-trace"
* @generated
* @ordered
*/
public static final int LOG_TRACE_VALUE = 0;
/**
* The '<em><b>LOG DEBUG</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>LOG DEBUG</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LOG_DEBUG
* @model literal="log-debug"
* @generated
* @ordered
*/
public static final int LOG_DEBUG_VALUE = 0;
/**
* The '<em><b>LOG INFO</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>LOG INFO</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LOG_INFO
* @model literal="log-info"
* @generated
* @ordered
*/
public static final int LOG_INFO_VALUE = 0;
/**
* The '<em><b>LOG WARN</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>LOG WARN</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LOG_WARN
* @model literal="log-warn"
* @generated
* @ordered
*/
public static final int LOG_WARN_VALUE = 0;
/**
* The '<em><b>LOG ERROR</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>LOG ERROR</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #LOG_ERROR
* @model literal="log-error"
* @generated
* @ordered
*/
public static final int LOG_ERROR_VALUE = 0;
/**
* The '<em><b>SHOW INFO</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>SHOW INFO</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #SHOW_INFO
* @model literal="show-info"
* @generated
* @ordered
*/
public static final int SHOW_INFO_VALUE = 0;
/**
* The '<em><b>SHOW WARN</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>SHOW WARN</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #SHOW_WARN
* @model literal="show-warn"
* @generated
* @ordered
*/
public static final int SHOW_WARN_VALUE = 0;
/**
* The '<em><b>SHOW ERROR</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>SHOW ERROR</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #SHOW_ERROR
* @model literal="show-error"
* @generated
* @ordered
*/
public static final int SHOW_ERROR_VALUE = 0;
/**
* An array of all the '<em><b>Automatic Output Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final AutomaticOutputEnum[] VALUES_ARRAY =
new AutomaticOutputEnum[] {
LOG_TRACE,
LOG_DEBUG,
LOG_INFO,
LOG_WARN,
LOG_ERROR,
SHOW_INFO,
SHOW_WARN,
SHOW_ERROR,
};
/**
* A public read-only list of all the '<em><b>Automatic Output Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<AutomaticOutputEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Automatic Output Enum</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static AutomaticOutputEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
AutomaticOutputEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Automatic Output Enum</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static AutomaticOutputEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
AutomaticOutputEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Automatic Output Enum</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static AutomaticOutputEnum get(int value) {
switch (value) {
case LOG_TRACE_VALUE: return LOG_TRACE;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private AutomaticOutputEnum(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getValue() {
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
return literal;
}
} //AutomaticOutputEnum