001: package org.andromda.metafacades.emf.uml2;
002:
003: import org.eclipse.uml2.Slot;
004: import org.eclipse.uml2.InstanceSpecification;
005: import org.eclipse.uml2.ValueSpecification;
006: import org.eclipse.uml2.StructuralFeature;
007: import org.eclipse.uml2.Element;
008: import org.eclipse.uml2.Comment;
009: import org.eclipse.uml2.Stereotype;
010: import org.eclipse.uml2.Model;
011: import org.eclipse.emf.common.util.EList;
012: import org.eclipse.emf.common.util.DiagnosticChain;
013: import org.eclipse.emf.common.util.TreeIterator;
014: import org.eclipse.emf.common.notify.Notification;
015: import org.eclipse.emf.ecore.EClass;
016: import org.eclipse.emf.ecore.EStructuralFeature;
017: import org.eclipse.emf.ecore.EAnnotation;
018: import org.eclipse.emf.ecore.EObject;
019: import org.eclipse.emf.ecore.EReference;
020: import org.eclipse.emf.ecore.resource.Resource;
021:
022: import java.util.Map;
023: import java.util.Set;
024:
025: public class LinkEndImpl implements LinkEnd {
026: final Slot slot;
027:
028: LinkEndImpl(final Slot slot) {
029: this .slot = slot;
030: }
031:
032: public boolean equals(final Object object) {
033: if (object instanceof AttributeLinkImpl) {
034: return this .slot.equals(((AttributeLinkImpl) object).slot);
035: }
036: if (object instanceof LinkEndImpl) {
037: return this .slot.equals(((LinkEndImpl) object).slot);
038: }
039: return this .slot.equals(object);
040: }
041:
042: public int hashCode() {
043: return this .slot.hashCode();
044: }
045:
046: public String toString() {
047: return this .getClass().getName() + '[' + this .slot.toString()
048: + ']';
049: }
050:
051: public InstanceSpecification getOwningInstance() {
052: return this .slot.getOwningInstance();
053: }
054:
055: public void setOwningInstance(
056: InstanceSpecification instanceSpecification) {
057: this .slot.setOwningInstance(instanceSpecification);
058: }
059:
060: public EList getValues() {
061: return this .slot.getValues();
062: }
063:
064: public ValueSpecification getValue(String string) {
065: return this .slot.getValue(string);
066: }
067:
068: public ValueSpecification createValue(EClass eClass) {
069: return this .slot.createValue(eClass);
070: }
071:
072: public StructuralFeature getDefiningFeature() {
073: return this .slot.getDefiningFeature();
074: }
075:
076: public void setDefiningFeature(StructuralFeature structuralFeature) {
077: this .slot.setDefiningFeature(structuralFeature);
078: }
079:
080: public Object eGet(EStructuralFeature eStructuralFeature, boolean b) {
081: return this .slot.eGet(eStructuralFeature, b);
082: }
083:
084: public void eSet(EStructuralFeature eStructuralFeature,
085: Object object) {
086: this .slot.eSet(eStructuralFeature, object);
087: }
088:
089: public void eUnset(EStructuralFeature eStructuralFeature) {
090: this .slot.eUnset(eStructuralFeature);
091: }
092:
093: public boolean eIsSet(EStructuralFeature eStructuralFeature) {
094: return this .slot.eIsSet(eStructuralFeature);
095: }
096:
097: public EList getOwnedElements() {
098: return this .slot.getOwnedElements();
099: }
100:
101: public Element getOwner() {
102: return this .slot.getOwner();
103: }
104:
105: public EList getOwnedComments() {
106: return this .slot.getOwnedComments();
107: }
108:
109: public Comment createOwnedComment(EClass eClass) {
110: return this .slot.createOwnedComment(eClass);
111: }
112:
113: public Comment createOwnedComment() {
114: return this .slot.createOwnedComment();
115: }
116:
117: public boolean validateNotOwnSelf(DiagnosticChain diagnosticChain,
118: Map map) {
119: return this .slot.validateNotOwnSelf(diagnosticChain, map);
120: }
121:
122: public boolean validateHasOwner(DiagnosticChain diagnosticChain,
123: Map map) {
124: return this .slot.validateHasOwner(diagnosticChain, map);
125: }
126:
127: public Set allOwnedElements() {
128: return this .slot.allOwnedElements();
129: }
130:
131: public boolean mustBeOwned() {
132: return this .slot.mustBeOwned();
133: }
134:
135: public EAnnotation createEAnnotation(String string) {
136: return this .slot.createEAnnotation(string);
137: }
138:
139: public void apply(Stereotype stereotype) {
140: this .slot.apply(stereotype);
141: }
142:
143: public Stereotype getApplicableStereotype(String string) {
144: return this .slot.getApplicableStereotype(string);
145: }
146:
147: public Set getApplicableStereotypes() {
148: return this .slot.getApplicableStereotypes();
149: }
150:
151: public Stereotype getAppliedStereotype(String string) {
152: return this .slot.getAppliedStereotype(string);
153: }
154:
155: public Set getAppliedStereotypes() {
156: return this .slot.getAppliedStereotypes();
157: }
158:
159: public Model getModel() {
160: return this .slot.getModel();
161: }
162:
163: public org.eclipse.uml2.Package getNearestPackage() {
164: return this .slot.getNearestPackage();
165: }
166:
167: public Object getValue(Stereotype stereotype, String string) {
168: return this .slot.getValue(stereotype, string);
169: }
170:
171: public boolean isApplied(Stereotype stereotype) {
172: return this .slot.isApplied(stereotype);
173: }
174:
175: public boolean isRequired(Stereotype stereotype) {
176: return this .slot.isRequired(stereotype);
177: }
178:
179: public void setValue(Stereotype stereotype, String string,
180: Object object) {
181: this .slot.setValue(stereotype, string, object);
182: }
183:
184: public boolean hasValue(Stereotype stereotype, String string) {
185: return this .slot.hasValue(stereotype, string);
186: }
187:
188: public void unapply(Stereotype stereotype) {
189: this .slot.unapply(stereotype);
190: }
191:
192: public void destroy() {
193: this .slot.destroy();
194: }
195:
196: public String getAppliedVersion(Stereotype stereotype) {
197: return this .slot.getAppliedVersion(stereotype);
198: }
199:
200: public void addKeyword(String string) {
201: this .slot.addKeyword(string);
202: }
203:
204: public Set getKeywords() {
205: return this .slot.getKeywords();
206: }
207:
208: public boolean hasKeyword(String string) {
209: return this .slot.hasKeyword(string);
210: }
211:
212: public void removeKeyword(String string) {
213: this .slot.removeKeyword(string);
214: }
215:
216: public EList getEAnnotations() {
217: return this .slot.getEAnnotations();
218: }
219:
220: public EAnnotation getEAnnotation(String string) {
221: return this .slot.getEAnnotation(string);
222: }
223:
224: public EList eAdapters() {
225: return this .slot.eAdapters();
226: }
227:
228: public boolean eDeliver() {
229: return this .slot.eDeliver();
230: }
231:
232: public void eSetDeliver(boolean b) {
233: this .slot.eSetDeliver(b);
234: }
235:
236: public boolean eIsProxy() {
237: return this .slot.eIsProxy();
238: }
239:
240: public EClass eClass() {
241: return this .slot.eClass();
242: }
243:
244: public EObject eContainer() {
245: return this .slot.eContainer();
246: }
247:
248: public EList eContents() {
249: return this .slot.eContents();
250: }
251:
252: public EList eCrossReferences() {
253: return this .slot.eCrossReferences();
254: }
255:
256: public TreeIterator eAllContents() {
257: return this .slot.eAllContents();
258: }
259:
260: public EReference eContainmentFeature() {
261: return this .slot.eContainmentFeature();
262: }
263:
264: public EStructuralFeature eContainingFeature() {
265: return this .slot.eContainingFeature();
266: }
267:
268: public Resource eResource() {
269: return this .slot.eResource();
270: }
271:
272: public Object eGet(EStructuralFeature eStructuralFeature) {
273: return this .slot.eGet(eStructuralFeature);
274: }
275:
276: public void eNotify(Notification notification) {
277: this.slot.eNotify(notification);
278: }
279: }
|