KickJava   Java API By Example, From Geeks To Geeks.

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


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: EReference.java,v 1.3 2005/06/08 06:20:10 nickb Exp $
16  */

17 package org.eclipse.emf.ecore;
18
19
20
21 /**
22  * <!-- begin-user-doc -->
23  * A representation of the model object '<em><b>EReference</b></em>'.
24  * <!-- end-user-doc -->
25  *
26  * <p>
27  * The following features are supported:
28  * <ul>
29  * <li>{@link org.eclipse.emf.ecore.EReference#isContainment <em>Containment</em>}</li>
30  * <li>{@link org.eclipse.emf.ecore.EReference#isContainer <em>Container</em>}</li>
31  * <li>{@link org.eclipse.emf.ecore.EReference#isResolveProxies <em>Resolve Proxies</em>}</li>
32  * <li>{@link org.eclipse.emf.ecore.EReference#getEOpposite <em>EOpposite</em>}</li>
33  * <li>{@link org.eclipse.emf.ecore.EReference#getEReferenceType <em>EReference Type</em>}</li>
34  * </ul>
35  * </p>
36  *
37  * @see org.eclipse.emf.ecore.EcorePackage#getEReference()
38  * @model
39  * @generated
40  */

41 public interface EReference extends EStructuralFeature
42 {
43   /**
44    * Returns the value of the '<em><b>Containment</b></em>' attribute.
45    * <!-- begin-user-doc -->
46    * A reference is a containment if it represents by-value content.
47    * <!-- end-user-doc -->
48    * @return the value of the '<em>Containment</em>' attribute.
49    * @see #setContainment(boolean)
50    * @see org.eclipse.emf.ecore.EcorePackage#getEReference_Containment()
51    * @model
52    * @generated
53    */

54   boolean isContainment();
55
56   /**
57    * Sets the value of the '{@link org.eclipse.emf.ecore.EReference#isContainment <em>Containment</em>}' attribute.
58    * <!-- begin-user-doc -->
59    * <!-- end-user-doc -->
60    * @param value the new value of the '<em>Containment</em>' attribute.
61    * @see #isContainment()
62    * @generated
63    */

64   void setContainment(boolean value);
65
66   /**
67    * Returns the value of the '<em><b>Container</b></em>' attribute.
68    * <!-- begin-user-doc -->
69    * <p>
70    * A reference is a container if it has an {@link #getEOpposite opposite} that is a {@link #isContainment containment}.
71    * </p>
72    * <!-- end-user-doc -->
73    * @return the value of the '<em>Container</em>' attribute.
74    * @see org.eclipse.emf.ecore.EcorePackage#getEReference_Container()
75    * @model transient="true" changeable="false" volatile="true"
76    * @generated
77    */

78   boolean isContainer();
79
80   /**
81    * Returns the value of the '<em><b>Resolve Proxies</b></em>' attribute.
82    * The default value is <code>"true"</code>.
83    * <!-- begin-user-doc -->
84    * <p>
85    * It represents whether {@link EObject#eIsProxy proxies} will be automatically resolved.
86    * </p>
87    * <!-- end-user-doc -->
88    * @return the value of the '<em>Resolve Proxies</em>' attribute.
89    * @see #setResolveProxies(boolean)
90    * @see org.eclipse.emf.ecore.EcorePackage#getEReference_ResolveProxies()
91    * @model default="true"
92    * @generated
93    */

94   boolean isResolveProxies();
95
96   /**
97    * Sets the value of the '{@link org.eclipse.emf.ecore.EReference#isResolveProxies <em>Resolve Proxies</em>}' attribute.
98    * <!-- begin-user-doc -->
99    * <!-- end-user-doc -->
100    * @param value the new value of the '<em>Resolve Proxies</em>' attribute.
101    * @see #isResolveProxies()
102    * @generated
103    */

104   void setResolveProxies(boolean value);
105
106   /**
107    * Returns the value of the '<em><b>EOpposite</b></em>' reference.
108    * <!-- begin-user-doc -->
109    * <p>
110    * It represent the other end of a bidirectional relation.
111    * </p>
112    * <!-- end-user-doc -->
113    * @return the value of the '<em>EOpposite</em>' reference.
114    * @see #setEOpposite(EReference)
115    * @see org.eclipse.emf.ecore.EcorePackage#getEReference_EOpposite()
116    * @model
117    * @generated
118    */

119   EReference getEOpposite();
120
121   /**
122    * Sets the value of the '{@link org.eclipse.emf.ecore.EReference#getEOpposite <em>EOpposite</em>}' reference.
123    * <!-- begin-user-doc -->
124    * <!-- end-user-doc -->
125    * @param value the new value of the '<em>EOpposite</em>' reference.
126    * @see #getEOpposite()
127    * @generated
128    */

129   void setEOpposite(EReference value);
130
131   /**
132    * Returns the value of the '<em><b>EReference Type</b></em>' reference.
133    * <!-- begin-user-doc -->
134    * <p>
135    * The {@link #getEType type} of a reference must always be a class; this method provides access to it.
136    * </p>
137    * <!-- end-user-doc -->
138    * @return the value of the '<em>EReference Type</em>' reference.
139    * @see org.eclipse.emf.ecore.EcorePackage#getEReference_EReferenceType()
140    * @model required="true" transient="true" changeable="false" volatile="true" derived="true"
141    * @generated
142    */

143   EClass getEReferenceType();
144
145 }
146
Popular Tags