
BusinessDomainDsl.PersistencyMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mod4j-businessdomain-mm Show documentation
Show all versions of mod4j-businessdomain-mm Show documentation
This Eclipse plug-in project contains the BusinessDomain meta model.
The newest version!
/**
*
*
*
* $Id$
*/
package BusinessDomainDsl;
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 'Persistency Mode',
* and utility methods for working with them.
*
* @see BusinessDomainDsl.BusinessDomainDslPackage#getPersistencyMode()
* @model
* @generated
*/
public enum PersistencyMode implements Enumerator {
/**
* The 'Read Write' literal object.
*
*
* @see #READ_WRITE_VALUE
* @generated
* @ordered
*/
READ_WRITE(0, "ReadWrite", "ReadWrite"),
/**
* The 'Read' literal object.
*
*
* @see #READ_VALUE
* @generated
* @ordered
*/
READ(0, "Read", "Read"),
/**
* The 'None' literal object.
*
*
* @see #NONE_VALUE
* @generated
* @ordered
*/
NONE(0, "None", "None");
/**
* The 'Read Write' literal value.
*
*
* If the meaning of 'Read Write' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #READ_WRITE
* @model name="ReadWrite"
* @generated
* @ordered
*/
public static final int READ_WRITE_VALUE = 0;
/**
* The 'Read' literal value.
*
*
* If the meaning of 'Read' literal object isn't clear,
* there really should be more of a description here...
*
*
* @see #READ
* @model name="Read"
* @generated
* @ordered
*/
public static final int READ_VALUE = 0;
/**
* 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 = 0;
/**
* An array of all the 'Persistency Mode' enumerators.
*
*
* @generated
*/
private static final PersistencyMode[] VALUES_ARRAY =
new PersistencyMode[] {
READ_WRITE,
READ,
NONE,
};
/**
* A public read-only list of all the 'Persistency Mode' enumerators.
*
*
* @generated
*/
public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the 'Persistency Mode' literal with the specified literal value.
*
*
* @generated
*/
public static PersistencyMode get(String literal) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
PersistencyMode result = VALUES_ARRAY[i];
if (result.toString().equals(literal)) {
return result;
}
}
return null;
}
/**
* Returns the 'Persistency Mode' literal with the specified name.
*
*
* @generated
*/
public static PersistencyMode getByName(String name) {
for (int i = 0; i < VALUES_ARRAY.length; ++i) {
PersistencyMode result = VALUES_ARRAY[i];
if (result.getName().equals(name)) {
return result;
}
}
return null;
}
/**
* Returns the 'Persistency Mode' literal with the specified integer value.
*
*
* @generated
*/
public static PersistencyMode get(int value) {
switch (value) {
case READ_WRITE_VALUE: return READ_WRITE;
}
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 PersistencyMode(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;
}
} //PersistencyMode
© 2015 - 2025 Weber Informatics LLC | Privacy Policy