/**
*
*
*
* $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 'Update Action Type',
* and utility methods for working with them.
*
* @see net.opengis.wfs20.Wfs20Package#getUpdateActionType()
* @model extendedMetaData="name='UpdateActionType'"
* @generated
*/
public enum UpdateActionType implements Enumerator {
/**
* The 'Replace' literal object.
*
*
* @see #REPLACE_VALUE
* @generated
* @ordered
*/
REPLACE(0, "replace", "replace"),
/**
* The 'Insert Before' literal object.
*
*
* @see #INSERT_BEFORE_VALUE
* @generated
* @ordered
*/
INSERT_BEFORE(1, "insertBefore", "insertBefore"),
/**
* The 'Insert After' literal object.
*
*
* @see #INSERT_AFTER_VALUE
* @generated
* @ordered
*/
INSERT_AFTER(2, "insertAfter", "insertAfter"),
/**
* The 'Remove' literal object.
*
*
* @see #REMOVE_VALUE
* @generated
* @ordered
*/
REMOVE(3, "remove", "remove");
/**
* The 'Replace' literal value.
*
*
* If the meaning of 'Replace' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #REPLACE
* @model name="replace"
* @generated
* @ordered
*/
public static final int REPLACE_VALUE = 0;
/**
* The 'Insert Before' literal value.
*
*
* If the meaning of 'Insert Before' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #INSERT_BEFORE
* @model name="insertBefore"
* @generated
* @ordered
*/
public static final int INSERT_BEFORE_VALUE = 1;
/**
* The 'Insert After' literal value.
*
*
* If the meaning of 'Insert After' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #INSERT_AFTER
* @model name="insertAfter"
* @generated
* @ordered
*/
public static final int INSERT_AFTER_VALUE = 2;
/**
* The 'Remove' literal value.
*
*
* If the meaning of 'Remove' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #REMOVE
* @model name="remove"
* @generated
* @ordered
*/
public static final int REMOVE_VALUE = 3;
/**
* An array of all the 'Update Action Type' enumerators.
*
*
* @generated
*/
private static final UpdateActionType[] VALUES_ARRAY =
new UpdateActionType[] {
REPLACE,
INSERT_BEFORE,
INSERT_AFTER,
REMOVE,
};
/**
* A public read-only list of all the 'Update Action Type' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Update Action Type' literal with the specified literal value.
*
*
* @generated
*/
public static UpdateActionType get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
UpdateActionType result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Update Action Type' literal with the specified name.
*
*
* @generated
*/
public static UpdateActionType getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
UpdateActionType result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Update Action Type' literal with the specified integer value.
*
*
* @generated
*/
public static UpdateActionType get(int value) {
switch (value) {
case REPLACE_VALUE: return REPLACE;
case INSERT_BEFORE_VALUE: return INSERT_BEFORE;
case INSERT_AFTER_VALUE: return INSERT_AFTER;
case REMOVE_VALUE: return REMOVE;
}
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 UpdateActionType(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;
}
} //UpdateActionType