All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.afplib.afplib.BDMDatFmt Maven / Gradle / Ivy

Go to download

Java object library able to read and write AFP (Advanced Function Presentation) files.

There is a newer version: 0.0.15
Show newest version
/**
 */
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 'BDM Dat Fmt',
 * and utility methods for working with them.
 * 
 * @see org.afplib.afplib.AfplibPackage#getBDMDatFmt()
 * @model
 * @generated
 */
public enum BDMDatFmt implements Enumerator {
	/**
	 * The 'Const LND' literal object.
	 * 
	 * 
	 * @see #CONST_LND_VALUE
	 * @generated
	 * @ordered
	 */
	CONST_LND(0, "ConstLND", "ConstLND"),

	/**
	 * The 'Const RCD' literal object.
	 * 
	 * 
	 * @see #CONST_RCD_VALUE
	 * @generated
	 * @ordered
	 */
	CONST_RCD(1, "ConstRCD", "ConstRCD"),

	/**
	 * The 'Const XMD' literal object.
	 * 
	 * 
	 * @see #CONST_XMD_VALUE
	 * @generated
	 * @ordered
	 */
	CONST_XMD(2, "ConstXMD", "ConstXMD");

	/**
	 * The 'Const LND' literal value.
	 * 
	 * 

* If the meaning of 'Const LND' literal object isn't clear, * there really should be more of a description here... *

* * @see #CONST_LND * @model name="ConstLND" * @generated * @ordered */ public static final int CONST_LND_VALUE = 0; /** * The 'Const RCD' literal value. * *

* If the meaning of 'Const RCD' literal object isn't clear, * there really should be more of a description here... *

* * @see #CONST_RCD * @model name="ConstRCD" * @generated * @ordered */ public static final int CONST_RCD_VALUE = 1; /** * The 'Const XMD' literal value. * *

* If the meaning of 'Const XMD' literal object isn't clear, * there really should be more of a description here... *

* * @see #CONST_XMD * @model name="ConstXMD" * @generated * @ordered */ public static final int CONST_XMD_VALUE = 2; /** * An array of all the 'BDM Dat Fmt' enumerators. * * * @generated */ private static final BDMDatFmt[] VALUES_ARRAY = new BDMDatFmt[] { CONST_LND, CONST_RCD, CONST_XMD, }; /** * A public read-only list of all the 'BDM Dat Fmt' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'BDM Dat Fmt' literal with the specified literal value. * * * @param literal the literal. * @return the matching enumerator or null. * @generated */ public static BDMDatFmt get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { BDMDatFmt result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'BDM Dat Fmt' literal with the specified name. * * * @param name the name. * @return the matching enumerator or null. * @generated */ public static BDMDatFmt getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { BDMDatFmt result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'BDM Dat Fmt' literal with the specified integer value. * * * @param value the integer value. * @return the matching enumerator or null. * @generated */ public static BDMDatFmt get(int value) { switch (value) { case CONST_LND_VALUE: return CONST_LND; case CONST_RCD_VALUE: return CONST_RCD; case CONST_XMD_VALUE: return CONST_XMD; } 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 BDMDatFmt(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; } } //BDMDatFmt




© 2015 - 2025 Weber Informatics LLC | Privacy Policy