KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > change > FeatureChange


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2003-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: FeatureChange.java,v 1.4 2005/06/08 06:16:16 nickb Exp $
16  */

17 package org.eclipse.emf.ecore.change;
18
19
20 import org.eclipse.emf.common.util.EList;
21 import org.eclipse.emf.ecore.EObject;
22 import org.eclipse.emf.ecore.EStructuralFeature;
23
24
25 /**
26  * <!-- begin-user-doc -->
27  * A representation of the model object '<em><b>Feature Change</b></em>'.
28  * <!-- end-user-doc -->
29  *
30  * <p>
31  * The following features are supported:
32  * <ul>
33  * <li>{@link org.eclipse.emf.ecore.change.FeatureChange#getFeatureName <em>Feature Name</em>}</li>
34  * <li>{@link org.eclipse.emf.ecore.change.FeatureChange#getDataValue <em>Data Value</em>}</li>
35  * <li>{@link org.eclipse.emf.ecore.change.FeatureChange#isSet <em>Set</em>}</li>
36  * <li>{@link org.eclipse.emf.ecore.change.FeatureChange#getValue <em>Value</em>}</li>
37  * <li>{@link org.eclipse.emf.ecore.change.FeatureChange#getFeature <em>Feature</em>}</li>
38  * <li>{@link org.eclipse.emf.ecore.change.FeatureChange#getReferenceValue <em>Reference Value</em>}</li>
39  * <li>{@link org.eclipse.emf.ecore.change.FeatureChange#getListChanges <em>List Changes</em>}</li>
40  * </ul>
41  * </p>
42  *
43  * @see org.eclipse.emf.ecore.change.ChangePackage#getFeatureChange()
44  * @model
45  * @generated
46  */

47 public interface FeatureChange extends EObject
48 {
49   /**
50    * Returns the value of the '<em><b>Feature Name</b></em>' attribute.
51    * <!-- begin-user-doc -->
52    * <p>
53    * If the meaning of the '<em>Feature Name</em>' attribute isn't clear,
54    * there really should be more of a description here...
55    * </p>
56    * <!-- end-user-doc -->
57    * @return the value of the '<em>Feature Name</em>' attribute.
58    * @see #isSetFeatureName()
59    * @see #unsetFeatureName()
60    * @see #setFeatureName(String)
61    * @see org.eclipse.emf.ecore.change.ChangePackage#getFeatureChange_FeatureName()
62    * @model unsettable="true" volatile="true"
63    * @generated
64    */

65   String JavaDoc getFeatureName();
66
67   /**
68    * Sets the value of the '{@link org.eclipse.emf.ecore.change.FeatureChange#getFeatureName <em>Feature Name</em>}' attribute.
69    * <!-- begin-user-doc -->
70    * <!-- end-user-doc -->
71    * @param value the new value of the '<em>Feature Name</em>' attribute.
72    * @see #isSetFeatureName()
73    * @see #unsetFeatureName()
74    * @see #getFeatureName()
75    * @generated
76    */

77   void setFeatureName(String JavaDoc value);
78
79   /**
80    * Unsets the value of the '{@link org.eclipse.emf.ecore.change.FeatureChange#getFeatureName <em>Feature Name</em>}' attribute.
81    * <!-- begin-user-doc -->
82    * <!-- end-user-doc -->
83    * @see #isSetFeatureName()
84    * @see #getFeatureName()
85    * @see #setFeatureName(String)
86    * @generated
87    */

88   void unsetFeatureName();
89
90   /**
91    * Returns whether the value of the '{@link org.eclipse.emf.ecore.change.FeatureChange#getFeatureName <em>Feature Name</em>}' attribute is set.
92    * <!-- begin-user-doc -->
93    * <!-- end-user-doc -->
94    * @return whether the value of the '<em>Feature Name</em>' attribute is set.
95    * @see #unsetFeatureName()
96    * @see #getFeatureName()
97    * @see #setFeatureName(String)
98    * @generated
99    */

100   boolean isSetFeatureName();
101
102   /**
103    * Returns the value of the '<em><b>Data Value</b></em>' attribute.
104    * <!-- begin-user-doc -->
105    * <p>
106    * If the meaning of the '<em>Data Value</em>' attribute isn't clear,
107    * there really should be more of a description here...
108    * </p>
109    * <!-- end-user-doc -->
110    * @return the value of the '<em>Data Value</em>' attribute.
111    * @see #setDataValue(String)
112    * @see org.eclipse.emf.ecore.change.ChangePackage#getFeatureChange_DataValue()
113    * @model volatile="true"
114    * @generated
115    */

116   String JavaDoc getDataValue();
117
118   /**
119    * Sets the value of the '{@link org.eclipse.emf.ecore.change.FeatureChange#getDataValue <em>Data Value</em>}' attribute.
120    * <!-- begin-user-doc -->
121    * <!-- end-user-doc -->
122    * @param value the new value of the '<em>Data Value</em>' attribute.
123    * @see #getDataValue()
124    * @generated
125    */

126   void setDataValue(String JavaDoc value);
127
128   /**
129    * Returns the value of the '<em><b>Set</b></em>' attribute.
130    * The default value is <code>"true"</code>.
131    * <!-- begin-user-doc -->
132    * <p>
133    * If the meaning of the '<em>Set</em>' attribute isn't clear,
134    * there really should be more of a description here...
135    * </p>
136    * <!-- end-user-doc -->
137    * @return the value of the '<em>Set</em>' attribute.
138    * @see #setSet(boolean)
139    * @see org.eclipse.emf.ecore.change.ChangePackage#getFeatureChange_Set()
140    * @model default="true"
141    * @generated
142    */

143   boolean isSet();
144
145   /**
146    * Sets the value of the '{@link org.eclipse.emf.ecore.change.FeatureChange#isSet <em>Set</em>}' attribute.
147    * <!-- begin-user-doc -->
148    * <!-- end-user-doc -->
149    * @param value the new value of the '<em>Set</em>' attribute.
150    * @see #isSet()
151    * @generated
152    */

153   void setSet(boolean value);
154
155   /**
156    * Returns the value of the '<em><b>Feature</b></em>' reference.
157    * <!-- begin-user-doc -->
158    * <p>
159    * If the meaning of the '<em>Feature</em>' reference isn't clear,
160    * there really should be more of a description here...
161    * </p>
162    * <!-- end-user-doc -->
163    * @return the value of the '<em>Feature</em>' reference.
164    * @see #isSetFeature()
165    * @see #unsetFeature()
166    * @see #setFeature(EStructuralFeature)
167    * @see org.eclipse.emf.ecore.change.ChangePackage#getFeatureChange_Feature()
168    * @model unsettable="true" required="true" volatile="true"
169    * @generated
170    */

171   EStructuralFeature getFeature();
172
173   /**
174    * Sets the value of the '{@link org.eclipse.emf.ecore.change.FeatureChange#getFeature <em>Feature</em>}' reference.
175    * <!-- begin-user-doc -->
176    * <!-- end-user-doc -->
177    * @param value the new value of the '<em>Feature</em>' reference.
178    * @see #isSetFeature()
179    * @see #unsetFeature()
180    * @see #getFeature()
181    * @generated
182    */

183   void setFeature(EStructuralFeature value);
184
185   /**
186    * Unsets the value of the '{@link org.eclipse.emf.ecore.change.FeatureChange#getFeature <em>Feature</em>}' reference.
187    * <!-- begin-user-doc -->
188    * <!-- end-user-doc -->
189    * @see #isSetFeature()
190    * @see #getFeature()
191    * @see #setFeature(EStructuralFeature)
192    * @generated
193    */

194   void unsetFeature();
195
196   /**
197    * Returns whether the value of the '{@link org.eclipse.emf.ecore.change.FeatureChange#getFeature <em>Feature</em>}' reference is set.
198    * <!-- begin-user-doc -->
199    * <!-- end-user-doc -->
200    * @return whether the value of the '<em>Feature</em>' reference is set.
201    * @see #unsetFeature()
202    * @see #getFeature()
203    * @see #setFeature(EStructuralFeature)
204    * @generated
205    */

206   boolean isSetFeature();
207
208   /**
209    * Returns the value of the '<em><b>Reference Value</b></em>' reference.
210    * <!-- begin-user-doc -->
211    * <p>
212    * If the meaning of the '<em>Reference Value</em>' reference isn't clear,
213    * there really should be more of a description here...
214    * </p>
215    * <!-- end-user-doc -->
216    * @return the value of the '<em>Reference Value</em>' reference.
217    * @see #setReferenceValue(EObject)
218    * @see org.eclipse.emf.ecore.change.ChangePackage#getFeatureChange_ReferenceValue()
219    * @model volatile="true"
220    * @generated
221    */

222   EObject getReferenceValue();
223
224   /**
225    * Sets the value of the '{@link org.eclipse.emf.ecore.change.FeatureChange#getReferenceValue <em>Reference Value</em>}' reference.
226    * <!-- begin-user-doc -->
227    * <!-- end-user-doc -->
228    * @param value the new value of the '<em>Reference Value</em>' reference.
229    * @see #getReferenceValue()
230    * @generated
231    */

232   void setReferenceValue(EObject value);
233
234   /**
235    * Returns the value of the '<em><b>List Changes</b></em>' containment reference list.
236    * The list contents are of type {@link org.eclipse.emf.ecore.change.ListChange}.
237    * <!-- begin-user-doc -->
238    * <p>
239    * If the meaning of the '<em>List Changes</em>' containment reference list isn't clear,
240    * there really should be more of a description here...
241    * </p>
242    * <!-- end-user-doc -->
243    * @return the value of the '<em>List Changes</em>' containment reference list.
244    * @see org.eclipse.emf.ecore.change.ChangePackage#getFeatureChange_ListChanges()
245    * @model type="org.eclipse.emf.ecore.change.ListChange" containment="true"
246    * @generated
247    */

248   EList getListChanges();
249
250   /**
251    * Returns the value of the '<em><b>Value</b></em>' attribute.
252    * <!-- begin-user-doc -->
253    * <!-- end-user-doc -->
254    * @return the value of the '<em>Value</em>' attribute.
255    * @see org.eclipse.emf.ecore.change.ChangePackage#getFeatureChange_Value()
256    * @model transient="true" changeable="false" volatile="true" derived="true"
257    * @generated
258    */

259   Object JavaDoc getValue();
260
261   /**
262    * <!-- begin-user-doc -->
263    * <!-- end-user-doc -->
264    * @model
265    * @generated
266    */

267   void apply(EObject originalObject);
268
269   /**
270    * <!-- begin-user-doc -->
271    * <!-- end-user-doc -->
272    * @model
273    * @generated
274    */

275   void applyAndReverse(EObject originalObject);
276
277 } // FeatureChange
278
Popular Tags