blob: e76a879b9a287e215d3ee208bcbd964e30fc38d0 [file] [log] [blame]
/**
* Copyright (c) 2011, 2018 - 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
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
* generated from SignalDSL.xcore
*
*
*/
package org.eclipse.osbp.xtext.signal;
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>File Mask Enum</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.eclipse.osbp.xtext.signal.SignalDSLPackage#getFileMaskEnum()
* @model
* @generated
*/
public enum FileMaskEnum implements Enumerator {
/**
* The '<em><b>File Import</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #FILE_IMPORT_VALUE
* @generated
* @ordered
*/
FILE_IMPORT(0, "fileImport", "_imp"),
/**
* The '<em><b>Pdf File</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #PDF_FILE_VALUE
* @generated
* @ordered
*/
PDF_FILE(0, "pdfFile", "_pdf"),
/**
* The '<em><b>File Print</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #FILE_PRINT_VALUE
* @generated
* @ordered
*/
FILE_PRINT(0, "filePrint", "_prt"),
/**
* The '<em><b>Message</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #MESSAGE_VALUE
* @generated
* @ordered
*/
MESSAGE(0, "message", "_sd");
/**
* The '<em><b>File Import</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>File Import</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #FILE_IMPORT
* @model name="fileImport" literal="_imp"
* @generated
* @ordered
*/
public static final int FILE_IMPORT_VALUE = 0;
/**
* The '<em><b>Pdf File</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Pdf File</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #PDF_FILE
* @model name="pdfFile" literal="_pdf"
* @generated
* @ordered
*/
public static final int PDF_FILE_VALUE = 0;
/**
* The '<em><b>File Print</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>File Print</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #FILE_PRINT
* @model name="filePrint" literal="_prt"
* @generated
* @ordered
*/
public static final int FILE_PRINT_VALUE = 0;
/**
* The '<em><b>Message</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>Message</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #MESSAGE
* @model name="message" literal="_sd"
* @generated
* @ordered
*/
public static final int MESSAGE_VALUE = 0;
/**
* An array of all the '<em><b>File Mask Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final FileMaskEnum[] VALUES_ARRAY =
new FileMaskEnum[] {
FILE_IMPORT,
PDF_FILE,
FILE_PRINT,
MESSAGE,
};
/**
* A public read-only list of all the '<em><b>File Mask Enum</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<FileMaskEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>File Mask Enum</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param literal the literal.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static FileMaskEnum get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
FileMaskEnum result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>File Mask Enum</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param name the name.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static FileMaskEnum getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
FileMaskEnum result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the '<em><b>File Mask Enum</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the integer value.
* @return the matching enumerator or <code>null</code>.
* @generated
*/
public static FileMaskEnum get(int value) {
switch (value) {
case FILE_IMPORT_VALUE: return FILE_IMPORT;
}
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 FileMaskEnum(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;
}
} //FileMaskEnum