01: package org.andromda.metafacades.uml14;
02:
03: import java.util.Collection;
04: import java.util.Collections;
05:
06: /**
07: * MetafacadeLogic implementation for org.andromda.metafacades.uml.LinkEndFacade.
08: *
09: * @see org.andromda.metafacades.uml.LinkEndFacade
10: */
11: public class LinkEndFacadeLogicImpl extends LinkEndFacadeLogic {
12: public LinkEndFacadeLogicImpl(
13: org.omg.uml.behavioralelements.commonbehavior.LinkEnd metaObject,
14: String context) {
15: super (metaObject, context);
16: }
17:
18: /**
19: * @see org.andromda.metafacades.uml.LinkEndFacade#getInstance()
20: */
21: protected java.lang.Object handleGetInstance() {
22: return metaObject.getInstance();
23: }
24:
25: /**
26: * @see org.andromda.metafacades.uml.LinkEndFacade#getAssociationEnd()
27: */
28: protected java.lang.Object handleGetAssociationEnd() {
29: return metaObject.getAssociationEnd();
30: }
31:
32: /**
33: * @see org.andromda.metafacades.uml.LinkEndFacade#getLink()
34: */
35: protected java.lang.Object handleGetLink() {
36: return metaObject.getLink();
37: }
38:
39: /**
40: * @see org.andromda.metafacades.uml.LinkEndFacade#getInstances()
41: */
42: protected Collection handleGetInstances() {
43: return Collections.singleton(this.getInstance());
44: }
45: }
|