KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > EEnumLiteral


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: EEnumLiteral.java,v 1.3 2005/06/08 06:20:10 nickb Exp $
16  */

17 package org.eclipse.emf.ecore;
18
19
20 import org.eclipse.emf.common.util.Enumerator;
21
22
23 /**
24  * <!-- begin-user-doc -->
25  * A representation of the model object '<em><b>EEnum Literal</b></em>'.
26  * @extends Enumerator
27  * <!-- end-user-doc -->
28  *
29  * <p>
30  * The following features are supported:
31  * <ul>
32  * <li>{@link org.eclipse.emf.ecore.EEnumLiteral#getValue <em>Value</em>}</li>
33  * <li>{@link org.eclipse.emf.ecore.EEnumLiteral#getInstance <em>Instance</em>}</li>
34  * <li>{@link org.eclipse.emf.ecore.EEnumLiteral#getEEnum <em>EEnum</em>}</li>
35  * </ul>
36  * </p>
37  *
38  * @see org.eclipse.emf.ecore.EcorePackage#getEEnumLiteral()
39  * @model
40  * @generated
41  */

42 public interface EEnumLiteral extends ENamedElement, Enumerator
43 {
44   /**
45    * Returns the value of the '<em><b>Value</b></em>' attribute.
46    * <!-- begin-user-doc -->
47    * <p>
48    * It represents the <code>int</code> value of an enumerator.
49    * </p>
50    * <!-- end-user-doc -->
51    * @return the value of the '<em>Value</em>' attribute.
52    * @see #setValue(int)
53    * @see org.eclipse.emf.ecore.EcorePackage#getEEnumLiteral_Value()
54    * @model
55    * @generated
56    */

57   int getValue();
58
59   /**
60    * Sets the value of the '{@link org.eclipse.emf.ecore.EEnumLiteral#getValue <em>Value</em>}' attribute.
61    * <!-- begin-user-doc -->
62    * <!-- end-user-doc -->
63    * @param value the new value of the '<em>Value</em>' attribute.
64    * @see #getValue()
65    * @generated
66    */

67   void setValue(int value);
68
69   /**
70    * Returns the value of the '<em><b>Instance</b></em>' attribute.
71    * <!-- begin-user-doc -->
72    * <p>
73    * It represents the actual Java instance value.
74    * </p>
75    * <!-- end-user-doc -->
76    * @return the value of the '<em>Instance</em>' attribute.
77    * @see #setInstance(Enumerator)
78    * @see org.eclipse.emf.ecore.EcorePackage#getEEnumLiteral_Instance()
79    * @model transient="true"
80    * @generated
81    */

82   Enumerator getInstance();
83
84   /**
85    * Sets the value of the '{@link org.eclipse.emf.ecore.EEnumLiteral#getInstance <em>Instance</em>}' attribute.
86    * <!-- begin-user-doc -->
87    * <!-- end-user-doc -->
88    * @param value the new value of the '<em>Instance</em>' attribute.
89    * @see #getInstance()
90    * @generated
91    */

92   void setInstance(Enumerator value);
93
94   /**
95    * Returns the value of the '<em><b>EEnum</b></em>' container reference.
96    * It is bidirectional and its opposite is '{@link org.eclipse.emf.ecore.EEnum#getELiterals <em>ELiterals</em>}'.
97    * <!-- begin-user-doc -->
98    * <p>
99    * It represents the contain enumeration.
100    * </p>
101    * <!-- end-user-doc -->
102    * @return the value of the '<em>EEnum</em>' container reference.
103    * @see org.eclipse.emf.ecore.EcorePackage#getEEnumLiteral_EEnum()
104    * @see org.eclipse.emf.ecore.EEnum#getELiterals
105    * @model opposite="eLiterals" changeable="false"
106    * @generated
107    */

108   EEnum getEEnum();
109
110 }
111
Popular Tags