KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2005 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: GenOperation.java,v 1.9 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.EOperation;
24
25
26 /**
27  * <!-- begin-user-doc -->
28  * A representation of the model object '<em><b>Gen Operation</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.GenOperation#getGenClass <em>Gen Class</em>}</li>
35  * <li>{@link org.eclipse.emf.codegen.ecore.genmodel.GenOperation#getEcoreOperation <em>Ecore Operation</em>}</li>
36  * <li>{@link org.eclipse.emf.codegen.ecore.genmodel.GenOperation#getGenParameters <em>Gen Parameters</em>}</li>
37  * </ul>
38  * </p>
39  *
40  * @see org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage#getGenOperation()
41  * @model
42  * @generated
43  */

44 public interface GenOperation extends GenTypedElement {
45   /**
46    * Returns the value of the '<em><b>Gen Class</b></em>' container reference.
47    * It is bidirectional and its opposite is '{@link org.eclipse.emf.codegen.ecore.genmodel.GenClass#getGenOperations <em>Gen Operations</em>}'.
48    * <!-- begin-user-doc -->
49    * <p>
50    * If the meaning of the '<em>Gen Class</em>' reference isn't clear,
51    * there really should be more of a description here...
52    * </p>
53    * <!-- end-user-doc -->
54    * @return the value of the '<em>Gen Class</em>' container reference.
55    * @see #setGenClass(GenClass)
56    * @see org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage#getGenOperation_GenClass()
57    * @see org.eclipse.emf.codegen.ecore.genmodel.GenClass#getGenOperations
58    * @model opposite="genOperations" required="true"
59    * @generated
60    */

61   GenClass getGenClass();
62
63   /**
64    * Sets the value of the '{@link org.eclipse.emf.codegen.ecore.genmodel.GenOperation#getGenClass <em>Gen Class</em>}' container reference.
65    * <!-- begin-user-doc -->
66    * <!-- end-user-doc -->
67    * @param value the new value of the '<em>Gen Class</em>' container reference.
68    * @see #getGenClass()
69    * @generated
70    */

71   void setGenClass(GenClass value);
72
73   /**
74    * Returns the value of the '<em><b>Ecore Operation</b></em>' reference.
75    * <!-- begin-user-doc -->
76    * <p>
77    * If the meaning of the '<em>Ecore Operation</em>' reference 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>Ecore Operation</em>' reference.
82    * @see #setEcoreOperation(EOperation)
83    * @see org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage#getGenOperation_EcoreOperation()
84    * @model required="true"
85    * @generated
86    */

87   EOperation getEcoreOperation();
88
89   /**
90    * Sets the value of the '{@link org.eclipse.emf.codegen.ecore.genmodel.GenOperation#getEcoreOperation <em>Ecore Operation</em>}' reference.
91    * <!-- begin-user-doc -->
92    * <!-- end-user-doc -->
93    * @param value the new value of the '<em>Ecore Operation</em>' reference.
94    * @see #getEcoreOperation()
95    * @generated
96    */

97   void setEcoreOperation(EOperation value);
98
99   /**
100    * Returns the value of the '<em><b>Gen Parameters</b></em>' containment reference list.
101    * The list contents are of type {@link org.eclipse.emf.codegen.ecore.genmodel.GenParameter}.
102    * It is bidirectional and its opposite is '{@link org.eclipse.emf.codegen.ecore.genmodel.GenParameter#getGenOperation <em>Gen Operation</em>}'.
103    * <!-- begin-user-doc -->
104    * <p>
105    * If the meaning of the '<em>Gen Parameters</em>' reference list isn't clear,
106    * there really should be more of a description here...
107    * </p>
108    * <!-- end-user-doc -->
109    * @return the value of the '<em>Gen Parameters</em>' containment reference list.
110    * @see org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage#getGenOperation_GenParameters()
111    * @see org.eclipse.emf.codegen.ecore.genmodel.GenParameter#getGenOperation
112    * @model type="org.eclipse.emf.codegen.ecore.genmodel.GenParameter" opposite="genOperation" containment="true"
113    * @generated
114    */

115   EList getGenParameters();
116
117   String JavaDoc getName();
118   String JavaDoc getCapName();
119   String JavaDoc getFormattedName();
120
121   boolean isVoid();
122
123   /**
124    * @deprecated As of EMF 2.1, use {@link GenTypedElement#getTypeClassifierAccessorName getTypeClassifierAccessorName} instead.
125    */

126   String JavaDoc getReturnTypeClassifier();
127
128   /**
129    * @deprecated As of EMF 2.1, use {@link GenTypedElement#getTypeGenPackage getTypeGenPackage} instead.
130    */

131   GenPackage getReturnTypeGenPackage();
132
133   /**
134    * @deprecated As of EMF 2.1, use {@link GenTypedElement#getType getType} instead.
135    */

136   String JavaDoc getReturnType();
137
138   /**
139    * @deprecated As of EMF 2.1, use {@link GenTypedElement#getImportedType getImportedType} instead.
140    */

141   String JavaDoc getImportedReturnType();
142
143   /**
144    * @deprecated As of EMF 2.1, use {@link GenTypedElement#getObjectType getObjectType} instead.
145    */

146   String JavaDoc getObjectReturnType();
147
148   /**
149    * @deprecated As of EMF 2.1, use {@link GenTypedElement#isPrimitiveType isPrimitiveType} instead.
150    */

151   boolean isPrimitiveReturnType();
152
153   String JavaDoc getParameters();
154   String JavaDoc getParameterTypes(String JavaDoc separator);
155   String JavaDoc getParameterTypes(String JavaDoc separator, boolean qualified);
156   String JavaDoc getParameterNames(String JavaDoc separator);
157
158   String JavaDoc getImportedMetaType();
159
160   GenPackage getGenPackage();
161
162   void initialize(EOperation eOperation);
163   String JavaDoc getModelInfo();
164
165   boolean reconcile(GenOperation oldGenOperationVersion);
166   boolean hasBody();
167   String JavaDoc getBody(String JavaDoc indentation);
168
169   List JavaDoc getGenExceptions();
170   String JavaDoc getThrows();
171
172   boolean isInvariant();
173 }
174
Popular Tags