diff options
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java')
-rw-r--r-- | plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java | 501 |
1 files changed, 257 insertions, 244 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java index 63b98676e86..f4cb84e2972 100644 --- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java +++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java @@ -13,271 +13,284 @@ import org.eclipse.emf.common.util.Enumerator; * A representation of the literals of the enumeration '<em><b>Modifier Kind</b></em>', * and utility methods for working with them. * <!-- end-user-doc --> + * * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierKind() * @model * @generated */ -public enum ModifierKind implements Enumerator -{ - /** - * The '<em><b>Read Only</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #READ_ONLY_VALUE - * @generated - * @ordered - */ - READ_ONLY(0, "readOnly", "readOnly"), +public enum ModifierKind implements Enumerator { + /** + * The '<em><b>Read Only</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #READ_ONLY_VALUE + * @generated + * @ordered + */ + READ_ONLY(0, "readOnly", "readOnly"), - /** - * The '<em><b>Union</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #UNION_VALUE - * @generated - * @ordered - */ - UNION(1, "union", "union"), + /** + * The '<em><b>Union</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #UNION_VALUE + * @generated + * @ordered + */ + UNION(1, "union", "union"), - /** - * The '<em><b>Ordered</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #ORDERED_VALUE - * @generated - * @ordered - */ - ORDERED(2, "ordered", "ordered"), + /** + * The '<em><b>Ordered</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #ORDERED_VALUE + * @generated + * @ordered + */ + ORDERED(2, "ordered", "ordered"), - /** - * The '<em><b>Unique</b></em>' literal object. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #UNIQUE_VALUE - * @generated - * @ordered - */ - UNIQUE(3, "unique", "unique"); + /** + * The '<em><b>Unique</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @see #UNIQUE_VALUE + * @generated + * @ordered + */ + UNIQUE(3, "unique", "unique"); - /** - * The '<em><b>Read Only</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Read Only</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #READ_ONLY - * @model name="readOnly" - * @generated - * @ordered - */ - public static final int READ_ONLY_VALUE = 0; + /** + * The '<em><b>Read Only</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Read Only</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #READ_ONLY + * @model name="readOnly" + * @generated + * @ordered + */ + public static final int READ_ONLY_VALUE = 0; - /** - * The '<em><b>Union</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Union</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #UNION - * @model name="union" - * @generated - * @ordered - */ - public static final int UNION_VALUE = 1; + /** + * The '<em><b>Union</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Union</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #UNION + * @model name="union" + * @generated + * @ordered + */ + public static final int UNION_VALUE = 1; - /** - * The '<em><b>Ordered</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Ordered</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #ORDERED - * @model name="ordered" - * @generated - * @ordered - */ - public static final int ORDERED_VALUE = 2; + /** + * The '<em><b>Ordered</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Ordered</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #ORDERED + * @model name="ordered" + * @generated + * @ordered + */ + public static final int ORDERED_VALUE = 2; - /** - * The '<em><b>Unique</b></em>' literal value. - * <!-- begin-user-doc --> - * <p> - * If the meaning of '<em><b>Unique</b></em>' literal object isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @see #UNIQUE - * @model name="unique" - * @generated - * @ordered - */ - public static final int UNIQUE_VALUE = 3; + /** + * The '<em><b>Unique</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>Unique</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * + * @see #UNIQUE + * @model name="unique" + * @generated + * @ordered + */ + public static final int UNIQUE_VALUE = 3; - /** - * An array of all the '<em><b>Modifier Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private static final ModifierKind[] VALUES_ARRAY = - new ModifierKind[] - { - READ_ONLY, - UNION, - ORDERED, - UNIQUE, - }; + /** + * An array of all the '<em><b>Modifier Kind</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private static final ModifierKind[] VALUES_ARRAY = new ModifierKind[] { + READ_ONLY, + UNION, + ORDERED, + UNIQUE, + }; - /** - * A public read-only list of all the '<em><b>Modifier Kind</b></em>' enumerators. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public static final List<ModifierKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + /** + * A public read-only list of all the '<em><b>Modifier Kind</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + public static final List<ModifierKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - /** - * Returns the '<em><b>Modifier Kind</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 ModifierKind get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - ModifierKind result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { - return result; - } - } - return null; - } + /** + * Returns the '<em><b>Modifier Kind</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 ModifierKind get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ModifierKind result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } - /** - * Returns the '<em><b>Modifier Kind</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 ModifierKind getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - ModifierKind result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { - return result; - } - } - return null; - } + /** + * Returns the '<em><b>Modifier Kind</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 ModifierKind getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + ModifierKind result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } - /** - * Returns the '<em><b>Modifier Kind</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 ModifierKind get(int value) - { - switch (value) - { - case READ_ONLY_VALUE: return READ_ONLY; - case UNION_VALUE: return UNION; - case ORDERED_VALUE: return ORDERED; - case UNIQUE_VALUE: return UNIQUE; - } - return null; - } + /** + * Returns the '<em><b>Modifier Kind</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 ModifierKind get(int value) { + switch (value) { + case READ_ONLY_VALUE: + return READ_ONLY; + case UNION_VALUE: + return UNION; + case ORDERED_VALUE: + return ORDERED; + case UNIQUE_VALUE: + return UNIQUE; + } + return null; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final int value; + /** + * <!-- 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 name; - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - private final String literal; + /** + * <!-- 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 ModifierKind(int value, String name, String literal) - { - this.value = value; - this.name = name; - this.literal = literal; - } + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * + * @generated + */ + private ModifierKind(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 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 getName() { + return name; + } - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getLiteral() - { - return literal; - } + /** + * <!-- 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; - } - -} //ModifierKind + /** + * 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; + } + +} // ModifierKind |