KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > codegen > ecore > genmodel > GenEnum


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: GenEnum.java,v 1.3 2005/06/08 06:18:44 nickb Exp $
16  */

17 package org.eclipse.emf.codegen.ecore.genmodel;
18
19
20 import java.util.List JavaDoc;
21
22 import org.eclipse.emf.common.util.EList;
23 import org.eclipse.emf.ecore.EEnum;
24
25
26 /**
27  * <!-- begin-user-doc -->
28  * A representation of the model object '<em><b>Gen Enum</b></em>'.
29  * <!-- end-user-doc -->
30  *
31  * <p>
32  * The following features are supported:
33  * <ul>
34  * <li>{@link org.eclipse.emf.codegen.ecore.genmodel.GenEnum#getEcoreEnum <em>Ecore Enum</em>}</li>
35  * <li>{@link org.eclipse.emf.codegen.ecore.genmodel.GenEnum#getGenEnumLiterals <em>Gen Enum Literals</em>}</li>
36  * </ul>
37  * </p>
38  *
39  * @see org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage#getGenEnum()
40  * @model
41  * @generated
42  */

43 public interface GenEnum extends GenDataType
44 {
45   /**
46    * Returns the value of the '<em><b>Ecore Enum</b></em>' reference.
47    * <!-- begin-user-doc -->
48    * <p>
49    * If the meaning of the '<em>Ecore Enum</em>' reference isn't clear,
50    * there really should be more of a description here...
51    * </p>
52    * <!-- end-user-doc -->
53    * @return the value of the '<em>Ecore Enum</em>' reference.
54    * @see #setEcoreEnum(EEnum)
55    * @see org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage#getGenEnum_EcoreEnum()
56    * @model required="true"
57    * @generated
58    */

59   EEnum getEcoreEnum();
60
61   /**
62    * Sets the value of the '{@link org.eclipse.emf.codegen.ecore.genmodel.GenEnum#getEcoreEnum <em>Ecore Enum</em>}' reference.
63    * <!-- begin-user-doc -->
64    * <!-- end-user-doc -->
65    * @param value the new value of the '<em>Ecore Enum</em>' reference.
66    * @see #getEcoreEnum()
67    * @generated
68    */

69   void setEcoreEnum(EEnum value);
70
71   /**
72    * Returns the value of the '<em><b>Gen Enum Literals</b></em>' containment reference list.
73    * The list contents are of type {@link org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral}.
74    * It is bidirectional and its opposite is '{@link org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral#getGenEnum <em>Gen Enum</em>}'.
75    * <!-- begin-user-doc -->
76    * <p>
77    * If the meaning of the '<em>Gen Enum Literals</em>' reference list isn't clear,
78    * there really should be more of a description here...
79    * </p>
80    * <!-- end-user-doc -->
81    * @return the value of the '<em>Gen Enum Literals</em>' containment reference list.
82    * @see org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage#getGenEnum_GenEnumLiterals()
83    * @see org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral#getGenEnum
84    * @model type="org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral" opposite="genEnum" containment="true"
85    * @generated
86    */

87   EList getGenEnumLiterals();
88
89   String JavaDoc getQualifiedName();
90   String JavaDoc getImportedName();
91
92   GenEnumLiteral getGenEnumLiteral(String JavaDoc literalName);
93   String JavaDoc getEnumLiteralID(GenEnumLiteral genEnumLiteral);
94   int getEnumLiteralValue(GenEnumLiteral genEnumLiteral);
95
96   List JavaDoc/*of GenEnumLiteral*/ getUniqueValuedGenEnumLiterals();
97
98   void initialize(EEnum eEnum);
99
100   boolean reconcile(GenEnum oldGenEnumVersion);
101
102 }
103
Popular Tags