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

org.afplib.afplib.MPSRGLength 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 'MPSRG Length',
 * and utility methods for working with them.
 * 
 * @see org.afplib.afplib.AfplibPackage#getMPSRGLength()
 * @model
 * @generated
 */
public enum MPSRGLength implements Enumerator {
	/**
	 * The 'Const Length12' literal object.
	 * 
	 * 
	 * @see #CONST_LENGTH12_VALUE
	 * @generated
	 * @ordered
	 */
	CONST_LENGTH12(12, "ConstLength12", "ConstLength12");

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy