/**
*
*
*
* $Id$
*/
package net.opengis.ows11;
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 'Range Closure Type',
* and utility methods for working with them.
*
* @see net.opengis.ows11.Ows11Package#getRangeClosureType()
* @model extendedMetaData="name='rangeClosure_._type'"
* @generated
*/
public final class RangeClosureType extends AbstractEnumerator {
/**
* The 'Closed' literal value.
*
*
*
* The specified minimum and maximum values are included in this range.
*
* @see #CLOSED_LITERAL
* @model name="closed"
* @generated
* @ordered
*/
public static final int CLOSED = 0;
/**
* The 'Open' literal value.
*
*
*
* The specified minimum and maximum values are NOT included in this range.
*
* @see #OPEN_LITERAL
* @model name="open"
* @generated
* @ordered
*/
public static final int OPEN = 1;
/**
* The 'Open Closed' literal value.
*
*
*
* The specified minimum value is NOT included in this range, and the specified maximum value IS included in this range.
*
* @see #OPEN_CLOSED_LITERAL
* @model name="openClosed" literal="open-closed"
* @generated
* @ordered
*/
public static final int OPEN_CLOSED = 2;
/**
* The 'Closed Open' literal value.
*
*
*
* The specified minimum value IS included in this range, and the specified maximum value is NOT included in this range.
*
* @see #CLOSED_OPEN_LITERAL
* @model name="closedOpen" literal="closed-open"
* @generated
* @ordered
*/
public static final int CLOSED_OPEN = 3;
/**
* The 'Closed' literal object.
*
*
* @see #CLOSED
* @generated
* @ordered
*/
public static final RangeClosureType CLOSED_LITERAL = new RangeClosureType(CLOSED, "closed", "closed");
/**
* The 'Open' literal object.
*
*
* @see #OPEN
* @generated
* @ordered
*/
public static final RangeClosureType OPEN_LITERAL = new RangeClosureType(OPEN, "open", "open");
/**
* The 'Open Closed' literal object.
*
*
* @see #OPEN_CLOSED
* @generated
* @ordered
*/
public static final RangeClosureType OPEN_CLOSED_LITERAL = new RangeClosureType(OPEN_CLOSED, "openClosed", "open-closed");
/**
* The 'Closed Open' literal object.
*
*
* @see #CLOSED_OPEN
* @generated
* @ordered
*/
public static final RangeClosureType CLOSED_OPEN_LITERAL = new RangeClosureType(CLOSED_OPEN, "closedOpen", "closed-open");
/**
* An array of all the 'Range Closure Type' enumerators.
*
*
* @generated
*/
private static final RangeClosureType[] VALUES_ARRAY =
new RangeClosureType[] {
CLOSED_LITERAL,
OPEN_LITERAL,
OPEN_CLOSED_LITERAL,
CLOSED_OPEN_LITERAL,
};
/**
* A public read-only list of all the 'Range Closure Type' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Range Closure Type' literal with the specified literal value.
*
*
* @generated
*/
public static RangeClosureType get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
RangeClosureType result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Range Closure Type' literal with the specified name.
*
*
* @generated
*/
public static RangeClosureType getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
RangeClosureType result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Range Closure Type' literal with the specified integer value.
*
*
* @generated
*/
public static RangeClosureType get(int value) {
switch (value) {
case CLOSED: return CLOSED_LITERAL;
case OPEN: return OPEN_LITERAL;
case OPEN_CLOSED: return OPEN_CLOSED_LITERAL;
case CLOSED_OPEN: return CLOSED_OPEN_LITERAL;
}
return null;
}
/**
* Only this class can construct instances.
*
*
* @generated
*/
private RangeClosureType(int value, String name, String literal) {
super(value, name, literal);
}
} //RangeClosureType