/** * * * * $Id$ */ package net.opengis.wfs; 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 'Result Type Type', * and utility methods for working with them. * * @see net.opengis.wfs.WfsPackage#getResultTypeType() * @model * @generated */ public final class ResultTypeType extends AbstractEnumerator { /** * The 'Results' literal value. * * * * * Indicates that a complete response should be generated * by the WFS. That is, all response feature instances * should be returned to the client. * * @see #RESULTS_LITERAL * @model name="results" * @generated * @ordered */ public static final int RESULTS = 0; /** * The 'Hits' literal value. * * * * * Indicates that an empty response should be generated with * the "numberOfFeatures" attribute set (i.e. no feature * instances should be returned). In this manner a client may * determine the number of feature instances that a GetFeature * request will return without having to actually get the * entire result set back. * * @see #HITS_LITERAL * @model name="hits" * @generated * @ordered */ public static final int HITS = 1; /** * The 'Results' literal object. * * * @see #RESULTS * @generated * @ordered */ public static final ResultTypeType RESULTS_LITERAL = new ResultTypeType(RESULTS, "results", "results"); /** * The 'Hits' literal object. * * * @see #HITS * @generated * @ordered */ public static final ResultTypeType HITS_LITERAL = new ResultTypeType(HITS, "hits", "hits"); /** * An array of all the 'Result Type Type' enumerators. * * * @generated */ private static final ResultTypeType[] VALUES_ARRAY = new ResultTypeType[] { RESULTS_LITERAL, HITS_LITERAL, }; /** * A public read-only list of all the 'Result Type Type' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Result Type Type' literal with the specified literal value. * * * @generated */ public static ResultTypeType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ResultTypeType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Result Type Type' literal with the specified name. * * * @generated */ public static ResultTypeType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ResultTypeType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Result Type Type' literal with the specified integer value. * * * @generated */ public static ResultTypeType get(int value) { switch (value) { case RESULTS: return RESULTS_LITERAL; case HITS: return HITS_LITERAL; } return null; } /** * Only this class can construct instances. * * * @generated */ private ResultTypeType(int value, String name, String literal) { super(value, name, literal); } } //ResultTypeType