001: package org.andromda.metafacades.emf.uml2;
002:
003: import org.eclipse.uml2.InstanceSpecification;
004: import org.eclipse.uml2.Deployment;
005: import org.eclipse.uml2.PackageableElement;
006: import org.eclipse.uml2.Slot;
007: import org.eclipse.uml2.Classifier;
008: import org.eclipse.uml2.ValueSpecification;
009: import org.eclipse.uml2.TemplateParameter;
010: import org.eclipse.uml2.VisibilityKind;
011: import org.eclipse.uml2.Dependency;
012: import org.eclipse.uml2.StringExpression;
013: import org.eclipse.uml2.NamedElement;
014: import org.eclipse.uml2.Namespace;
015: import org.eclipse.uml2.TemplateBinding;
016: import org.eclipse.uml2.TemplateSignature;
017: import org.eclipse.uml2.Element;
018: import org.eclipse.uml2.Comment;
019: import org.eclipse.uml2.Stereotype;
020: import org.eclipse.uml2.Model;
021: import org.eclipse.emf.common.util.EList;
022: import org.eclipse.emf.common.util.DiagnosticChain;
023: import org.eclipse.emf.common.util.TreeIterator;
024: import org.eclipse.emf.common.notify.Notification;
025: import org.eclipse.emf.ecore.EClass;
026: import org.eclipse.emf.ecore.EStructuralFeature;
027: import org.eclipse.emf.ecore.EAnnotation;
028: import org.eclipse.emf.ecore.EObject;
029: import org.eclipse.emf.ecore.EReference;
030: import org.eclipse.emf.ecore.resource.Resource;
031:
032: import java.util.Map;
033: import java.util.List;
034: import java.util.Set;
035:
036: public class LinkInstanceImpl implements LinkInstance {
037: final InstanceSpecification instanceSpecification;
038:
039: LinkInstanceImpl(InstanceSpecification instanceSpecification) {
040: this .instanceSpecification = instanceSpecification;
041: }
042:
043: public boolean equals(Object object) {
044: if (object instanceof ObjectInstanceImpl) {
045: return this .instanceSpecification
046: .equals(((ObjectInstanceImpl) object).instanceSpecification);
047: }
048: if (object instanceof LinkInstanceImpl) {
049: return this .instanceSpecification
050: .equals(((LinkInstanceImpl) object).instanceSpecification);
051: }
052: return this .instanceSpecification.equals(object);
053: }
054:
055: public int hashCode() {
056: return this .instanceSpecification.hashCode();
057: }
058:
059: public String toString() {
060: return this .getClass().getName() + '['
061: + this .instanceSpecification.toString() + ']';
062: }
063:
064: public EList getDeployments() {
065: return this .instanceSpecification.getDeployments();
066: }
067:
068: public Deployment getDeployment(String string) {
069: return this .instanceSpecification.getDeployment(string);
070: }
071:
072: public Deployment createDeployment(EClass eClass) {
073: return this .instanceSpecification.createDeployment(eClass);
074: }
075:
076: public Deployment createDeployment() {
077: return this .instanceSpecification.createDeployment();
078: }
079:
080: public EList getDeployedElements() {
081: return this .instanceSpecification.getDeployedElements();
082: }
083:
084: public PackageableElement getDeployedElement(String string) {
085: return this .instanceSpecification.getDeployedElement(string);
086: }
087:
088: public EList getSlots() {
089: return this .instanceSpecification.getSlots();
090: }
091:
092: public Slot createSlot(EClass eClass) {
093: return this .instanceSpecification.createSlot(eClass);
094: }
095:
096: public Slot createSlot() {
097: return this .instanceSpecification.createSlot();
098: }
099:
100: public EList getClassifiers() {
101: return this .instanceSpecification.getClassifiers();
102: }
103:
104: public Classifier getClassifier(String string) {
105: return this .instanceSpecification.getClassifier(string);
106: }
107:
108: public ValueSpecification getSpecification() {
109: return this .instanceSpecification.getSpecification();
110: }
111:
112: public void setSpecification(ValueSpecification valueSpecification) {
113: this .instanceSpecification.setSpecification(valueSpecification);
114: }
115:
116: public ValueSpecification createSpecification(EClass eClass) {
117: return this .instanceSpecification.createSpecification(eClass);
118: }
119:
120: public boolean validateSlotsAreDefined(
121: DiagnosticChain diagnosticChain, Map map) {
122: return this .instanceSpecification.validateSlotsAreDefined(
123: diagnosticChain, map);
124: }
125:
126: public boolean validateNoDuplicateSlots(
127: DiagnosticChain diagnosticChain, Map map) {
128: return this .instanceSpecification.validateNoDuplicateSlots(
129: diagnosticChain, map);
130: }
131:
132: public EList getClientDependencies() {
133: return this .instanceSpecification.getClientDependencies();
134: }
135:
136: public Object eGet(EStructuralFeature eStructuralFeature, boolean b) {
137: return this .instanceSpecification.eGet(eStructuralFeature, b);
138: }
139:
140: public void eSet(EStructuralFeature eStructuralFeature,
141: Object object) {
142: this .instanceSpecification.eSet(eStructuralFeature, object);
143: }
144:
145: public void eUnset(EStructuralFeature eStructuralFeature) {
146: this .instanceSpecification.eUnset(eStructuralFeature);
147: }
148:
149: public boolean eIsSet(EStructuralFeature eStructuralFeature) {
150: return this .instanceSpecification.eIsSet(eStructuralFeature);
151: }
152:
153: public TemplateParameter getTemplateParameter() {
154: return this .instanceSpecification.getTemplateParameter();
155: }
156:
157: public void setTemplateParameter(TemplateParameter templateParameter) {
158: this .instanceSpecification
159: .setTemplateParameter(templateParameter);
160: }
161:
162: public TemplateParameter getOwningParameter() {
163: return this .instanceSpecification.getOwningParameter();
164: }
165:
166: public void setOwningParameter(TemplateParameter templateParameter) {
167: this .instanceSpecification
168: .setOwningParameter(templateParameter);
169: }
170:
171: public VisibilityKind getPackageableElement_visibility() {
172: return this .instanceSpecification
173: .getPackageableElement_visibility();
174: }
175:
176: public void setPackageableElement_visibility(
177: VisibilityKind visibilityKind) {
178: this .instanceSpecification
179: .setPackageableElement_visibility(visibilityKind);
180: }
181:
182: public VisibilityKind getVisibility() {
183: return this .instanceSpecification.getVisibility();
184: }
185:
186: public void setVisibility(VisibilityKind visibilityKind) {
187: this .instanceSpecification.setVisibility(visibilityKind);
188: }
189:
190: public String getName() {
191: return this .instanceSpecification.getName();
192: }
193:
194: public void setName(String string) {
195: this .instanceSpecification.setName(string);
196: }
197:
198: public String getQualifiedName() {
199: return this .instanceSpecification.getQualifiedName();
200: }
201:
202: public Dependency getClientDependency(String string) {
203: return this .instanceSpecification.getClientDependency(string);
204: }
205:
206: public StringExpression getNameExpression() {
207: return this .instanceSpecification.getNameExpression();
208: }
209:
210: public void setNameExpression(StringExpression stringExpression) {
211: this .instanceSpecification.setNameExpression(stringExpression);
212: }
213:
214: public StringExpression createNameExpression(EClass eClass) {
215: return this .instanceSpecification.createNameExpression(eClass);
216: }
217:
218: public StringExpression createNameExpression() {
219: return this .instanceSpecification.createNameExpression();
220: }
221:
222: public boolean validateNoName(DiagnosticChain diagnosticChain,
223: Map map) {
224: return this .instanceSpecification.validateNoName(
225: diagnosticChain, map);
226: }
227:
228: public boolean validateQualifiedName(
229: DiagnosticChain diagnosticChain, Map map) {
230: return this .instanceSpecification.validateQualifiedName(
231: diagnosticChain, map);
232: }
233:
234: public List allNamespaces() {
235: return this .instanceSpecification.allNamespaces();
236: }
237:
238: public boolean isDistinguishableFrom(NamedElement namedElement,
239: Namespace namespace) {
240: return this .instanceSpecification.isDistinguishableFrom(
241: namedElement, namespace);
242: }
243:
244: public String separator() {
245: return this .instanceSpecification.separator();
246: }
247:
248: public String qualifiedName() {
249: return this .instanceSpecification.qualifiedName();
250: }
251:
252: public boolean validateVisibilityNeedsOwnership(
253: DiagnosticChain diagnosticChain, Map map) {
254: return this .instanceSpecification
255: .validateVisibilityNeedsOwnership(diagnosticChain, map);
256: }
257:
258: public Namespace getNamespace() {
259: return this .instanceSpecification.getNamespace();
260: }
261:
262: public String getLabel() {
263: return this .instanceSpecification.getLabel();
264: }
265:
266: public String getLabel(boolean b) {
267: return this .instanceSpecification.getLabel(b);
268: }
269:
270: public Dependency createDependency(NamedElement namedElement) {
271: return this .instanceSpecification
272: .createDependency(namedElement);
273: }
274:
275: public EList getTemplateBindings() {
276: return this .instanceSpecification.getTemplateBindings();
277: }
278:
279: public TemplateBinding createTemplateBinding(EClass eClass) {
280: return this .instanceSpecification.createTemplateBinding(eClass);
281: }
282:
283: public TemplateBinding createTemplateBinding() {
284: return this .instanceSpecification.createTemplateBinding();
285: }
286:
287: public TemplateSignature getOwnedTemplateSignature() {
288: return this .instanceSpecification.getOwnedTemplateSignature();
289: }
290:
291: public void setOwnedTemplateSignature(
292: TemplateSignature templateSignature) {
293: this .instanceSpecification
294: .setOwnedTemplateSignature(templateSignature);
295: }
296:
297: public TemplateSignature createOwnedTemplateSignature(EClass eClass) {
298: return this .instanceSpecification
299: .createOwnedTemplateSignature(eClass);
300: }
301:
302: public TemplateSignature createOwnedTemplateSignature() {
303: return this .instanceSpecification
304: .createOwnedTemplateSignature();
305: }
306:
307: public Set parameterableElements() {
308: return this .instanceSpecification.parameterableElements();
309: }
310:
311: public EList getOwnedElements() {
312: return this .instanceSpecification.getOwnedElements();
313: }
314:
315: public Element getOwner() {
316: return this .instanceSpecification.getOwner();
317: }
318:
319: public EList getOwnedComments() {
320: return this .instanceSpecification.getOwnedComments();
321: }
322:
323: public Comment createOwnedComment(EClass eClass) {
324: return this .instanceSpecification.createOwnedComment(eClass);
325: }
326:
327: public Comment createOwnedComment() {
328: return this .instanceSpecification.createOwnedComment();
329: }
330:
331: public boolean validateNotOwnSelf(DiagnosticChain diagnosticChain,
332: Map map) {
333: return this .instanceSpecification.validateNotOwnSelf(
334: diagnosticChain, map);
335: }
336:
337: public boolean validateHasOwner(DiagnosticChain diagnosticChain,
338: Map map) {
339: return this .instanceSpecification.validateHasOwner(
340: diagnosticChain, map);
341: }
342:
343: public Set allOwnedElements() {
344: return this .instanceSpecification.allOwnedElements();
345: }
346:
347: public boolean mustBeOwned() {
348: return this .instanceSpecification.mustBeOwned();
349: }
350:
351: public EAnnotation createEAnnotation(String string) {
352: return this .instanceSpecification.createEAnnotation(string);
353: }
354:
355: public void apply(Stereotype stereotype) {
356: this .instanceSpecification.apply(stereotype);
357: }
358:
359: public Stereotype getApplicableStereotype(String string) {
360: return this .instanceSpecification
361: .getApplicableStereotype(string);
362: }
363:
364: public Set getApplicableStereotypes() {
365: return this .instanceSpecification.getApplicableStereotypes();
366: }
367:
368: public Stereotype getAppliedStereotype(String string) {
369: return this .instanceSpecification.getAppliedStereotype(string);
370: }
371:
372: public Set getAppliedStereotypes() {
373: return this .instanceSpecification.getAppliedStereotypes();
374: }
375:
376: public Model getModel() {
377: return this .instanceSpecification.getModel();
378: }
379:
380: public org.eclipse.uml2.Package getNearestPackage() {
381: return this .instanceSpecification.getNearestPackage();
382: }
383:
384: public Object getValue(Stereotype stereotype, String string) {
385: return this .instanceSpecification.getValue(stereotype, string);
386: }
387:
388: public boolean isApplied(Stereotype stereotype) {
389: return this .instanceSpecification.isApplied(stereotype);
390: }
391:
392: public boolean isRequired(Stereotype stereotype) {
393: return this .instanceSpecification.isRequired(stereotype);
394: }
395:
396: public void setValue(Stereotype stereotype, String string,
397: Object object) {
398: this .instanceSpecification.setValue(stereotype, string, object);
399: }
400:
401: public boolean hasValue(Stereotype stereotype, String string) {
402: return this .instanceSpecification.hasValue(stereotype, string);
403: }
404:
405: public void unapply(Stereotype stereotype) {
406: this .instanceSpecification.unapply(stereotype);
407: }
408:
409: public void destroy() {
410: this .instanceSpecification.destroy();
411: }
412:
413: public String getAppliedVersion(Stereotype stereotype) {
414: return this .instanceSpecification.getAppliedVersion(stereotype);
415: }
416:
417: public void addKeyword(String string) {
418: this .instanceSpecification.addKeyword(string);
419: }
420:
421: public Set getKeywords() {
422: return this .instanceSpecification.getKeywords();
423: }
424:
425: public boolean hasKeyword(String string) {
426: return this .instanceSpecification.hasKeyword(string);
427: }
428:
429: public void removeKeyword(String string) {
430: this .instanceSpecification.removeKeyword(string);
431: }
432:
433: public EList getEAnnotations() {
434: return this .instanceSpecification.getEAnnotations();
435: }
436:
437: public EAnnotation getEAnnotation(String string) {
438: return this .instanceSpecification.getEAnnotation(string);
439: }
440:
441: public EList eAdapters() {
442: return this .instanceSpecification.eAdapters();
443: }
444:
445: public boolean eDeliver() {
446: return this .instanceSpecification.eDeliver();
447: }
448:
449: public void eSetDeliver(boolean b) {
450: this .instanceSpecification.eSetDeliver(b);
451: }
452:
453: public boolean eIsProxy() {
454: return this .instanceSpecification.eIsProxy();
455: }
456:
457: public EClass eClass() {
458: return this .instanceSpecification.eClass();
459: }
460:
461: public EObject eContainer() {
462: return this .instanceSpecification.eContainer();
463: }
464:
465: public EList eContents() {
466: return this .instanceSpecification.eContents();
467: }
468:
469: public EList eCrossReferences() {
470: return this .instanceSpecification.eCrossReferences();
471: }
472:
473: public TreeIterator eAllContents() {
474: return this .instanceSpecification.eAllContents();
475: }
476:
477: public EReference eContainmentFeature() {
478: return this .instanceSpecification.eContainmentFeature();
479: }
480:
481: public EStructuralFeature eContainingFeature() {
482: return this .instanceSpecification.eContainingFeature();
483: }
484:
485: public Resource eResource() {
486: return this .instanceSpecification.eResource();
487: }
488:
489: public Object eGet(EStructuralFeature eStructuralFeature) {
490: return this .instanceSpecification.eGet(eStructuralFeature);
491: }
492:
493: public void eNotify(Notification notification) {
494: this.instanceSpecification.eNotify(notification);
495: }
496: }
|