diff options
Diffstat (limited to 'extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/NameBasedMsgMode.java')
-rw-r--r-- | extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/NameBasedMsgMode.java | 241 |
1 files changed, 0 insertions, 241 deletions
diff --git a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/NameBasedMsgMode.java b/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/NameBasedMsgMode.java deleted file mode 100644 index b09e88aed52..00000000000 --- a/extraplugins/dsml.validation/org.eclipse.papyrus.dsml.validation/src-gen/org/eclipse/papyrus/dsml/validation/PapyrusDSMLValidationRule/NameBasedMsgMode.java +++ /dev/null @@ -1,241 +0,0 @@ -/** - */ -package org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; - -/** - * <!-- begin-user-doc --> - * A representation of the literals of the enumeration '<em><b>Name Based Msg Mode</b></em>', - * and utility methods for working with them. - * <!-- end-user-doc --> - * @see org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage#getNameBasedMsgMode() - * @model - * @generated - */ -public enum NameBasedMsgMode implements Enumerator { - /** - * The '<em><b>Default</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #DEFAULT_VALUE - * @generated - * @ordered - */ - DEFAULT(0, "Default", "Default"), - - /** - * The '<em><b>Name Is Message</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #NAME_IS_MESSAGE_VALUE - * @generated - * @ordered - */ - NAME_IS_MESSAGE(1, "NameIsMessage", "NameIsMessage"), - - /** - * The '<em><b>Custom Template</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #CUSTOM_TEMPLATE_VALUE - * @generated - * @ordered - */ - CUSTOM_TEMPLATE(2, "CustomTemplate", "CustomTemplate"); - - /** - * The '<em><b>Default</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Default</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #DEFAULT - * @model name="Default" - * @generated - * @ordered - */ - public static final int DEFAULT_VALUE = 0; - - /** - * The '<em><b>Name Is Message</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Name Is Message</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #NAME_IS_MESSAGE - * @model name="NameIsMessage" - * @generated - * @ordered - */ - public static final int NAME_IS_MESSAGE_VALUE = 1; - - /** - * The '<em><b>Custom Template</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Custom Template</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #CUSTOM_TEMPLATE - * @model name="CustomTemplate" - * @generated - * @ordered - */ - public static final int CUSTOM_TEMPLATE_VALUE = 2; - - /** - * An array of all the '<em><b>Name Based Msg Mode</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final NameBasedMsgMode[] VALUES_ARRAY = - new NameBasedMsgMode[] { - DEFAULT, - NAME_IS_MESSAGE, - CUSTOM_TEMPLATE, - }; - - /** - * A public read-only list of all the '<em><b>Name Based Msg Mode</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List<NameBasedMsgMode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the '<em><b>Name Based Msg Mode</b></em>' literal with the specified literal value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param literal the literal. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static NameBasedMsgMode get(String literal) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - NameBasedMsgMode result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Name Based Msg Mode</b></em>' literal with the specified name. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param name the name. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static NameBasedMsgMode getByName(String name) { - for (int i = 0; i < VALUES_ARRAY.length; ++i) { - NameBasedMsgMode result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) { - return result; - } - } - return null; - } - - /** - * Returns the '<em><b>Name Based Msg Mode</b></em>' literal with the specified integer value. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the integer value. - * @return the matching enumerator or <code>null</code>. - * @generated - */ - public static NameBasedMsgMode get(int value) { - switch (value) { - case DEFAULT_VALUE: return DEFAULT; - case NAME_IS_MESSAGE_VALUE: return NAME_IS_MESSAGE; - case CUSTOM_TEMPLATE_VALUE: return CUSTOM_TEMPLATE; - } - return null; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final int value; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String name; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private NameBasedMsgMode(int value, String name, String literal) { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public int getValue() { - return value; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLiteral() { - return literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - return literal; - } - -} //NameBasedMsgMode |