01: package org.andromda.metafacades.uml14;
02:
03: import java.util.Collection;
04:
05: /**
06: * MetafacadeLogic implementation for org.andromda.metafacades.uml.InstanceFacade.
07: *
08: * @see org.andromda.metafacades.uml.InstanceFacade
09: */
10: public class InstanceFacadeLogicImpl extends InstanceFacadeLogic {
11: public InstanceFacadeLogicImpl(
12: org.omg.uml.behavioralelements.commonbehavior.Instance metaObject,
13: String context) {
14: super (metaObject, context);
15: }
16:
17: /**
18: * @see org.andromda.metafacades.uml.InstanceFacade#getClassifiers()
19: */
20: protected java.util.Collection handleGetClassifiers() {
21: return metaObject.getClassifier();
22: }
23:
24: /**
25: * @see org.andromda.metafacades.uml.InstanceFacade#getLinkEnds()
26: */
27: protected java.util.Collection handleGetLinkEnds() {
28: return metaObject.getLinkEnd();
29: }
30:
31: /**
32: * @see org.andromda.metafacades.uml.InstanceFacade#getOwnedInstances()
33: */
34: protected java.util.Collection handleGetOwnedInstances() {
35: return metaObject.getOwnedInstance();
36: }
37:
38: /**
39: * @see org.andromda.metafacades.uml.InstanceFacade#getOwnedLinks()
40: */
41: protected java.util.Collection handleGetOwnedLinks() {
42: return metaObject.getOwnedLink();
43: }
44:
45: /**
46: * @see org.andromda.metafacades.uml.InstanceFacade#getSlots()
47: */
48: protected java.util.Collection handleGetSlots() {
49: return metaObject.getSlot();
50: }
51:
52: /**
53: * @see org.andromda.metafacades.uml.InstanceFacade#getAttributeLinks()
54: */
55: protected Collection handleGetAttributeLinks() {
56: // wouter: in UML1.4 the slots only convey the attribute links (unless I'm mistaken this is different in UML2)
57: return metaObject.getSlot();
58: }
59: }
|