/**
*
*
*
* $Id$
*/
package net.opengis.wfs20;
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 'Resolve Value Type',
* and utility methods for working with them.
*
* @see net.opengis.wfs20.Wfs20Package#getResolveValueType()
* @model extendedMetaData="name='ResolveValueType'"
* @generated
*/
public enum ResolveValueType implements Enumerator {
/**
* The 'Local' literal object.
*
*
* @see #LOCAL_VALUE
* @generated
* @ordered
*/
LOCAL(0, "local", "local"),
/**
* The 'Remote' literal object.
*
*
* @see #REMOTE_VALUE
* @generated
* @ordered
*/
REMOTE(1, "remote", "remote"),
/**
* The 'All' literal object.
*
*
* @see #ALL_VALUE
* @generated
* @ordered
*/
ALL(2, "all", "all"),
/**
* The 'None' literal object.
*
*
* @see #NONE_VALUE
* @generated
* @ordered
*/
NONE(3, "none", "none");
/**
* The 'Local' literal value.
*
*
* If the meaning of 'Local' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #LOCAL
* @model name="local"
* @generated
* @ordered
*/
public static final int LOCAL_VALUE = 0;
/**
* The 'Remote' literal value.
*
*
* If the meaning of 'Remote' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #REMOTE
* @model name="remote"
* @generated
* @ordered
*/
public static final int REMOTE_VALUE = 1;
/**
* The 'All' literal value.
*
*
* If the meaning of 'All' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #ALL
* @model name="all"
* @generated
* @ordered
*/
public static final int ALL_VALUE = 2;
/**
* The 'None' literal value.
*
*
* If the meaning of 'None' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #NONE
* @model name="none"
* @generated
* @ordered
*/
public static final int NONE_VALUE = 3;
/**
* An array of all the 'Resolve Value Type' enumerators.
*
*
* @generated
*/
private static final ResolveValueType[] VALUES_ARRAY =
new ResolveValueType[] {
LOCAL,
REMOTE,
ALL,
NONE,
};
/**
* A public read-only list of all the 'Resolve Value Type' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Resolve Value Type' literal with the specified literal value.
*
*
* @generated
*/
public static ResolveValueType get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ResolveValueType result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Resolve Value Type' literal with the specified name.
*
*
* @generated
*/
public static ResolveValueType getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
ResolveValueType result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Resolve Value Type' literal with the specified integer value.
*
*
* @generated
*/
public static ResolveValueType get(int value) {
switch (value) {
case LOCAL_VALUE: return LOCAL;
case REMOTE_VALUE: return REMOTE;
case ALL_VALUE: return ALL;
case NONE_VALUE: return NONE;
}
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 ResolveValueType(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;
}
} //ResolveValueType