org.afplib.afplib.FNCRetired Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of afplib Show documentation
Show all versions of afplib Show documentation
Java object library able to read and write AFP (Advanced Function Presentation) files.
/**
*/
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 'FNC Retired',
* and utility methods for working with them.
*
* @see org.afplib.afplib.AfplibPackage#getFNCRetired()
* @model
* @generated
*/
public enum FNCRetired implements Enumerator {
/**
* The 'Const Retired' literal object.
*
*
* @see #CONST_RETIRED_VALUE
* @generated
* @ordered
*/
CONST_RETIRED(1, "ConstRetired", "ConstRetired");
/**
* 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 = 1;
/**
* An array of all the 'FNC Retired' enumerators.
*
*
* @generated
*/
private static final FNCRetired[] VALUES_ARRAY =
new FNCRetired[] {
CONST_RETIRED,
};
/**
* A public read-only list of all the 'FNC Retired' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'FNC Retired' literal with the specified literal value.
*
*
* @param literal the literal.
* @return the matching enumerator or null
.
* @generated
*/
public static FNCRetired get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
FNCRetired result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'FNC Retired' literal with the specified name.
*
*
* @param name the name.
* @return the matching enumerator or null
.
* @generated
*/
public static FNCRetired getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
FNCRetired result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'FNC Retired' literal with the specified integer value.
*
*
* @param value the integer value.
* @return the matching enumerator or null
.
* @generated
*/
public static FNCRetired get(int value) {
switch (value) {
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 FNCRetired(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;
}
} //FNCRetired
© 2015 - 2025 Weber Informatics LLC | Privacy Policy