/** * * * * $Id$ */ package net.opengis.fes20; 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 'Spatial Operator Name Type Member0', * and utility methods for working with them. * * @see net.opengis.fes20.Fes20Package#getSpatialOperatorNameTypeMember0() * @model extendedMetaData="name='SpatialOperatorNameType_._member_._0'" * @generated */ public enum SpatialOperatorNameTypeMember0 implements Enumerator { /** * The 'BBOX' literal object. * * * @see #BBOX_VALUE * @generated * @ordered */ BBOX(0, "BBOX", "BBOX"), /** * The 'Equals' literal object. * * * @see #EQUALS_VALUE * @generated * @ordered */ EQUALS(1, "Equals", "Equals"), /** * The 'Disjoint' literal object. * * * @see #DISJOINT_VALUE * @generated * @ordered */ DISJOINT(2, "Disjoint", "Disjoint"), /** * The 'Intersects' literal object. * * * @see #INTERSECTS_VALUE * @generated * @ordered */ INTERSECTS(3, "Intersects", "Intersects"), /** * The 'Touches' literal object. * * * @see #TOUCHES_VALUE * @generated * @ordered */ TOUCHES(4, "Touches", "Touches"), /** * The 'Crosses' literal object. * * * @see #CROSSES_VALUE * @generated * @ordered */ CROSSES(5, "Crosses", "Crosses"), /** * The 'Within' literal object. * * * @see #WITHIN_VALUE * @generated * @ordered */ WITHIN(6, "Within", "Within"), /** * The 'Contains' literal object. * * * @see #CONTAINS_VALUE * @generated * @ordered */ CONTAINS(7, "Contains", "Contains"), /** * The 'Overlaps' literal object. * * * @see #OVERLAPS_VALUE * @generated * @ordered */ OVERLAPS(8, "Overlaps", "Overlaps"), /** * The 'Beyond' literal object. * * * @see #BEYOND_VALUE * @generated * @ordered */ BEYOND(9, "Beyond", "Beyond"), /** * The 'DWithin' literal object. * * * @see #DWITHIN_VALUE * @generated * @ordered */ DWITHIN(10, "DWithin", "DWithin"); /** * The 'BBOX' literal value. * *

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

* * @see #BBOX * @model * @generated * @ordered */ public static final int BBOX_VALUE = 0; /** * The 'Equals' literal value. * *

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

* * @see #EQUALS * @model name="Equals" * @generated * @ordered */ public static final int EQUALS_VALUE = 1; /** * The 'Disjoint' literal value. * *

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

* * @see #DISJOINT * @model name="Disjoint" * @generated * @ordered */ public static final int DISJOINT_VALUE = 2; /** * The 'Intersects' literal value. * *

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

* * @see #INTERSECTS * @model name="Intersects" * @generated * @ordered */ public static final int INTERSECTS_VALUE = 3; /** * The 'Touches' literal value. * *

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

* * @see #TOUCHES * @model name="Touches" * @generated * @ordered */ public static final int TOUCHES_VALUE = 4; /** * The 'Crosses' literal value. * *

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

* * @see #CROSSES * @model name="Crosses" * @generated * @ordered */ public static final int CROSSES_VALUE = 5; /** * The 'Within' literal value. * *

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

* * @see #WITHIN * @model name="Within" * @generated * @ordered */ public static final int WITHIN_VALUE = 6; /** * The 'Contains' literal value. * *

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

* * @see #CONTAINS * @model name="Contains" * @generated * @ordered */ public static final int CONTAINS_VALUE = 7; /** * The 'Overlaps' literal value. * *

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

* * @see #OVERLAPS * @model name="Overlaps" * @generated * @ordered */ public static final int OVERLAPS_VALUE = 8; /** * The 'Beyond' literal value. * *

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

* * @see #BEYOND * @model name="Beyond" * @generated * @ordered */ public static final int BEYOND_VALUE = 9; /** * The 'DWithin' literal value. * *

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

* * @see #DWITHIN * @model name="DWithin" * @generated * @ordered */ public static final int DWITHIN_VALUE = 10; /** * An array of all the 'Spatial Operator Name Type Member0' enumerators. * * * @generated */ private static final SpatialOperatorNameTypeMember0[] VALUES_ARRAY = new SpatialOperatorNameTypeMember0[] { BBOX, EQUALS, DISJOINT, INTERSECTS, TOUCHES, CROSSES, WITHIN, CONTAINS, OVERLAPS, BEYOND, DWITHIN, }; /** * A public read-only list of all the 'Spatial Operator Name Type Member0' enumerators. * * * @generated */ public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the 'Spatial Operator Name Type Member0' literal with the specified literal value. * * * @generated */ public static SpatialOperatorNameTypeMember0 get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { SpatialOperatorNameTypeMember0 result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; } /** * Returns the 'Spatial Operator Name Type Member0' literal with the specified name. * * * @generated */ public static SpatialOperatorNameTypeMember0 getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { SpatialOperatorNameTypeMember0 result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; } /** * Returns the 'Spatial Operator Name Type Member0' literal with the specified integer value. * * * @generated */ public static SpatialOperatorNameTypeMember0 get(int value) { switch (value) { case BBOX_VALUE: return BBOX; case EQUALS_VALUE: return EQUALS; case DISJOINT_VALUE: return DISJOINT; case INTERSECTS_VALUE: return INTERSECTS; case TOUCHES_VALUE: return TOUCHES; case CROSSES_VALUE: return CROSSES; case WITHIN_VALUE: return WITHIN; case CONTAINS_VALUE: return CONTAINS; case OVERLAPS_VALUE: return OVERLAPS; case BEYOND_VALUE: return BEYOND; case DWITHIN_VALUE: return DWITHIN; } 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 SpatialOperatorNameTypeMember0(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; } } //SpatialOperatorNameTypeMember0