org.afplib.afplib.ObjectClassificationObjClass Maven / Gradle / Ivy
Show all versions of afplib Show documentation
/**
*/
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 'Object Classification Obj Class',
* and utility methods for working with them.
*
* @see org.afplib.afplib.AfplibPackage#getObjectClassificationObjClass()
* @model
* @generated
*/
public enum ObjectClassificationObjClass implements Enumerator {
/**
* The 'Const Timeinvariant' literal object.
*
*
* @see #CONST_TIMEINVARIANT_VALUE
* @generated
* @ordered
*/
CONST_TIMEINVARIANT(1, "ConstTimeinvariant", "ConstTimeinvariant"),
/**
* The 'Const Timevariant' literal object.
*
*
* @see #CONST_TIMEVARIANT_VALUE
* @generated
* @ordered
*/
CONST_TIMEVARIANT(16, "ConstTimevariant", "ConstTimevariant"),
/**
* The 'Const Executableprogram' literal object.
*
*
* @see #CONST_EXECUTABLEPROGRAM_VALUE
* @generated
* @ordered
*/
CONST_EXECUTABLEPROGRAM(32, "ConstExecutableprogram", "ConstExecutableprogram"),
/**
* The 'Const Setupfile' literal object.
*
*
* @see #CONST_SETUPFILE_VALUE
* @generated
* @ordered
*/
CONST_SETUPFILE(48, "ConstSetupfile", "ConstSetupfile"),
/**
* The 'Const Secondary Resourceeg Color Profile' literal object.
*
*
* @see #CONST_SECONDARY_RESOURCEEG_COLOR_PROFILE_VALUE
* @generated
* @ordered
*/
CONST_SECONDARY_RESOURCEEG_COLOR_PROFILE(64, "ConstSecondaryResourceegColorProfile", "ConstSecondaryResourceegColorProfile"),
/**
* The 'Const Dataobjectfont' literal object.
*
*
* @see #CONST_DATAOBJECTFONT_VALUE
* @generated
* @ordered
*/
CONST_DATAOBJECTFONT(65, "ConstDataobjectfont", "ConstDataobjectfont");
/**
* The 'Const Timeinvariant' literal value.
*
*
* If the meaning of 'Const Timeinvariant' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_TIMEINVARIANT
* @model name="ConstTimeinvariant"
* @generated
* @ordered
*/
public static final int CONST_TIMEINVARIANT_VALUE = 1;
/**
* The 'Const Timevariant' literal value.
*
*
* If the meaning of 'Const Timevariant' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_TIMEVARIANT
* @model name="ConstTimevariant"
* @generated
* @ordered
*/
public static final int CONST_TIMEVARIANT_VALUE = 16;
/**
* The 'Const Executableprogram' literal value.
*
*
* If the meaning of 'Const Executableprogram' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_EXECUTABLEPROGRAM
* @model name="ConstExecutableprogram"
* @generated
* @ordered
*/
public static final int CONST_EXECUTABLEPROGRAM_VALUE = 32;
/**
* The 'Const Setupfile' literal value.
*
*
* If the meaning of 'Const Setupfile' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_SETUPFILE
* @model name="ConstSetupfile"
* @generated
* @ordered
*/
public static final int CONST_SETUPFILE_VALUE = 48;
/**
* The 'Const Secondary Resourceeg Color Profile' literal value.
*
*
* If the meaning of 'Const Secondary Resourceeg Color Profile' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_SECONDARY_RESOURCEEG_COLOR_PROFILE
* @model name="ConstSecondaryResourceegColorProfile"
* @generated
* @ordered
*/
public static final int CONST_SECONDARY_RESOURCEEG_COLOR_PROFILE_VALUE = 64;
/**
* The 'Const Dataobjectfont' literal value.
*
*
* If the meaning of 'Const Dataobjectfont' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #CONST_DATAOBJECTFONT
* @model name="ConstDataobjectfont"
* @generated
* @ordered
*/
public static final int CONST_DATAOBJECTFONT_VALUE = 65;
/**
* An array of all the 'Object Classification Obj Class' enumerators.
*
*
* @generated
*/
private static final ObjectClassificationObjClass[] VALUES_ARRAY =
new ObjectClassificationObjClass[] {
CONST_TIMEINVARIANT,
CONST_TIMEVARIANT,
CONST_EXECUTABLEPROGRAM,
CONST_SETUPFILE,
CONST_SECONDARY_RESOURCEEG_COLOR_PROFILE,
CONST_DATAOBJECTFONT,
};
/**
* A public read-only list of all the 'Object Classification Obj Class' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Object Classification Obj Class' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static ObjectClassificationObjClass get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ObjectClassificationObjClass result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Object Classification Obj Class' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static ObjectClassificationObjClass getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ObjectClassificationObjClass result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Object Classification Obj Class' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static ObjectClassificationObjClass get(int value) {
switch (value) {
case CONST_TIMEINVARIANT_VALUE: return CONST_TIMEINVARIANT;
case CONST_TIMEVARIANT_VALUE: return CONST_TIMEVARIANT;
case CONST_EXECUTABLEPROGRAM_VALUE: return CONST_EXECUTABLEPROGRAM;
case CONST_SETUPFILE_VALUE: return CONST_SETUPFILE;
case CONST_SECONDARY_RESOURCEEG_COLOR_PROFILE_VALUE: return CONST_SECONDARY_RESOURCEEG_COLOR_PROFILE;
case CONST_DATAOBJECTFONT_VALUE: return CONST_DATAOBJECTFONT;
}
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 ObjectClassificationObjClass(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;
}
} //ObjectClassificationObjClass