1 // license-header java merge-point
2 //
3 // Attention: generated code (by Metafacade.vsl) - do not modify!
4 //
5 package org.andromda.metafacades.uml;
6
7 /**
8 * A user-defined data value for an enumeration.
9 *
10 * Metafacade interface to be used by AndroMDA cartridges.
11 */
12 public interface EnumerationLiteralFacade
13 extends ModelElementFacade
14 {
15 /**
16 * Indicates the metafacade type (used for metafacade mappings).
17 *
18 * @return boolean always <code>true</code>
19 */
20 public boolean isEnumerationLiteralFacadeMetaType();
21
22 /**
23 * Gets the Literal's Value. This will be used to create the Literal's Instance.
24 * @return String
25 */
26 public String getEnumerationValue();
27
28 /**
29 * Gets the name of the enumeration literal (if the "modelName" flag is true, then the actual
30 * name of the literal in the model is returned - otherwise the name that has any masking
31 * applied).
32 * @param modelName boolean
33 * @return String
34 */
35 public String getName(boolean modelName);
36
37 /**
38 * Returns the value of this enumeration literal, by default the value is the same as the name.
39 * @return String
40 */
41 public String getValue();
42
43 /**
44 * Gets the value of the enumeration literal (if the "modelValue" flag is true, then the actual
45 * value of the literal in the model is returned - otherwise the value that has any masking
46 * applied is returned).
47 * @param modelValue boolean
48 * @return String
49 */
50 public String getValue(boolean modelValue);
51 }