org.afplib.afplib.MFCMFCScpe Maven / Gradle / Ivy
/**
*/
package org.afplib.afplib;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
*
* A representation of the literals of the enumeration 'MFCMFC Scpe',
* and utility methods for working with them.
*
* @see org.afplib.afplib.AfplibPackage#getMFCMFCScpe()
* @model
* @generated
*/
public enum MFCMFCScpe implements Enumerator {
/**
* The 'Const Print Level' literal object.
*
*
* @see #CONST_PRINT_LEVEL_VALUE
* @generated
* @ordered
*/
CONST_PRINT_LEVEL(1, "ConstPrintLevel", "ConstPrintLevel"),
/**
* The 'Const Document Level All' literal object.
*
*
* @see #CONST_DOCUMENT_LEVEL_ALL_VALUE
* @generated
* @ordered
*/
CONST_DOCUMENT_LEVEL_ALL(2, "ConstDocumentLevelAll", "ConstDocumentLevelAll"),
/**
* The 'Const Document Level Selected' literal object.
*
*
* @see #CONST_DOCUMENT_LEVEL_SELECTED_VALUE
* @generated
* @ordered
*/
CONST_DOCUMENT_LEVEL_SELECTED(3, "ConstDocumentLevelSelected", "ConstDocumentLevelSelected"),
/**
* The 'Const Medium Leveleach' literal object.
*
*
* @see #CONST_MEDIUM_LEVELEACH_VALUE
* @generated
* @ordered
*/
CONST_MEDIUM_LEVELEACH(4, "ConstMediumLeveleach", "ConstMediumLeveleach"),
/**
* The 'Const Medium Levelcollection' literal object.
*
*
* @see #CONST_MEDIUM_LEVELCOLLECTION_VALUE
* @generated
* @ordered
*/
CONST_MEDIUM_LEVELCOLLECTION(5, "ConstMediumLevelcollection", "ConstMediumLevelcollection"),
/**
* The 'Const Retired' literal object.
*
*
* @see #CONST_RETIRED_VALUE
* @generated
* @ordered
*/
CONST_RETIRED(6, "ConstRetired", "ConstRetired");
/**
* The 'Const Print Level' literal value.
*
*
* If the meaning of 'Const Print Level' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_PRINT_LEVEL
* @model name="ConstPrintLevel"
* @generated
* @ordered
*/
public static final int CONST_PRINT_LEVEL_VALUE = 1;
/**
* The 'Const Document Level All' literal value.
*
*
* If the meaning of 'Const Document Level All' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_DOCUMENT_LEVEL_ALL
* @model name="ConstDocumentLevelAll"
* @generated
* @ordered
*/
public static final int CONST_DOCUMENT_LEVEL_ALL_VALUE = 2;
/**
* The 'Const Document Level Selected' literal value.
*
*
* If the meaning of 'Const Document Level Selected' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_DOCUMENT_LEVEL_SELECTED
* @model name="ConstDocumentLevelSelected"
* @generated
* @ordered
*/
public static final int CONST_DOCUMENT_LEVEL_SELECTED_VALUE = 3;
/**
* The 'Const Medium Leveleach' literal value.
*
*
* If the meaning of 'Const Medium Leveleach' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_MEDIUM_LEVELEACH
* @model name="ConstMediumLeveleach"
* @generated
* @ordered
*/
public static final int CONST_MEDIUM_LEVELEACH_VALUE = 4;
/**
* The 'Const Medium Levelcollection' literal value.
*
*
* If the meaning of 'Const Medium Levelcollection' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_MEDIUM_LEVELCOLLECTION
* @model name="ConstMediumLevelcollection"
* @generated
* @ordered
*/
public static final int CONST_MEDIUM_LEVELCOLLECTION_VALUE = 5;
/**
* The 'Const Retired' literal value.
*
*
* If the meaning of 'Const Retired' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_RETIRED
* @model name="ConstRetired"
* @generated
* @ordered
*/
public static final int CONST_RETIRED_VALUE = 6;
/**
* An array of all the 'MFCMFC Scpe' enumerators.
*
*
* @generated
*/
private static final MFCMFCScpe[] VALUES_ARRAY =
new MFCMFCScpe[] {
CONST_PRINT_LEVEL,
CONST_DOCUMENT_LEVEL_ALL,
CONST_DOCUMENT_LEVEL_SELECTED,
CONST_MEDIUM_LEVELEACH,
CONST_MEDIUM_LEVELCOLLECTION,
CONST_RETIRED,
};
/**
* A public read-only list of all the 'MFCMFC Scpe' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'MFCMFC Scpe' literal with the specified literal value.
*
*
* @generated
*/
public static MFCMFCScpe get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
MFCMFCScpe result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'MFCMFC Scpe' literal with the specified name.
*
*
* @generated
*/
public static MFCMFCScpe getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
MFCMFCScpe result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'MFCMFC Scpe' literal with the specified integer value.
*
*
* @generated
*/
public static MFCMFCScpe get(int value) {
switch (value) {
case CONST_PRINT_LEVEL_VALUE: return CONST_PRINT_LEVEL;
case CONST_DOCUMENT_LEVEL_ALL_VALUE: return CONST_DOCUMENT_LEVEL_ALL;
case CONST_DOCUMENT_LEVEL_SELECTED_VALUE: return CONST_DOCUMENT_LEVEL_SELECTED;
case CONST_MEDIUM_LEVELEACH_VALUE: return CONST_MEDIUM_LEVELEACH;
case CONST_MEDIUM_LEVELCOLLECTION_VALUE: return CONST_MEDIUM_LEVELCOLLECTION;
case CONST_RETIRED_VALUE: return CONST_RETIRED;
}
return null;
}
/**
*
*
* @generated
*/
private final int value;
/**
*
*
* @generated
*/
private final String name;
/**
*
*
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
*
*
* @generated
*/
private MFCMFCScpe(int value, String name, String literal) {
this.value = value;
this.name = name;
this.literal = literal;
}
/**
*
*
* @generated
*/
public int getValue() {
return value;
}
/**
*
*
* @generated
*/
public String getName() {
return name;
}
/**
*
*
* @generated
*/
public String getLiteral() {
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
*
*
* @generated
*/
@Override
public String toString() {
return literal;
}
} //MFCMFCScpe