01: package org.andromda.metafacades.uml14;
02:
03: import org.andromda.metafacades.uml.AttributeFacade;
04: import org.andromda.metafacades.uml.ClassifierFacade;
05: import org.andromda.metafacades.uml.ManageableEntity;
06:
07: /**
08: * MetafacadeLogic implementation for org.andromda.metafacades.uml.ManageableEntityAssociationEnd.
09: *
10: * @see org.andromda.metafacades.uml.ManageableEntityAssociationEnd
11: */
12: public class ManageableEntityAssociationEndLogicImpl extends
13: ManageableEntityAssociationEndLogic {
14: public ManageableEntityAssociationEndLogicImpl(Object metaObject,
15: String context) {
16: super (metaObject, context);
17: }
18:
19: /**
20: * @see org.andromda.metafacades.uml.ManageableEntityAssociationEnd#getManageableIdentifier()
21: */
22: protected Object handleGetManageableIdentifier() {
23: AttributeFacade manageableIdentifier = null;
24:
25: final ClassifierFacade classifierFacade = this .getType();
26: if (classifierFacade instanceof ManageableEntity) {
27: final ManageableEntity entity = (ManageableEntity) classifierFacade;
28: manageableIdentifier = entity.getManageableIdentifier();
29: }
30:
31: return manageableIdentifier;
32: }
33:
34: /**
35: * @see org.andromda.metafacades.uml.ManageableEntityAssociationEnd#isDisplay()
36: */
37: protected boolean handleIsDisplay() {
38: // we always display association ends
39: return true;
40: }
41: }
|