/** * * * * $Id$ */ package net.opengis.wps; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.eclipse.emf.common.util.AbstractEnumerator; /** * * A representation of the literals of the enumeration 'Method Type', * and utility methods for working with them. * * @see net.opengis.wps.WpsPackage#getMethodType() * @model extendedMetaData="name='method_._type'" * @generated */ public final class MethodType extends AbstractEnumerator { /** * The 'GET' literal value. * *

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

* * @see #GET_LITERAL * @model * @generated * @ordered */ public static final int GET = 0; /** * The 'POST' literal value. * *

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

* * @see #POST_LITERAL * @model * @generated * @ordered */ public static final int POST = 1; /** * The 'GET' literal object. * * * @see #GET * @generated * @ordered */ public static final MethodType GET_LITERAL = new MethodType(GET, "GET", "GET"); /** * The 'POST' literal object. * * * @see #POST * @generated * @ordered */ public static final MethodType POST_LITERAL = new MethodType(POST, "POST", "POST"); /** * An array of all the 'Method Type' enumerators. * * * @generated */ private static final MethodType[] VALUES_ARRAY = new MethodType[] { GET_LITERAL, POST_LITERAL, }; /** * A public read-only list of all the 'Method Type' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Method Type' literal with the specified literal value. * * * @generated */ public static MethodType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { MethodType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Method Type' literal with the specified name. * * * @generated */ public static MethodType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { MethodType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Method Type' literal with the specified integer value. * * * @generated */ public static MethodType get(int value) { switch (value) { case GET: return GET_LITERAL; case POST: return POST_LITERAL; } return null; } /** * Only this class can construct instances. * * * @generated */ private MethodType(int value, String name, String literal) { super(value, name, literal); } } //MethodType