getting the association ends from a regular class is done like this 
(ClassifierFacadeLogicImpl.java, line #89 
(http://galaxy.andromda.org/docs/andromda-metafacades-uml14/xref/org/andromda/metafacades/uml14/ClassifierFacadeLogicImpl.html#89)):



    /**

     * @see 
org.andromda.metafacades.uml.ClassifierFacadeLogic#getAssociationEnds()

     */

    protected java.util.Collection handleGetAssociationEnds()

    {

        return 
UML14MetafacadeUtils.getCorePackage().getAParticipantAssociation().getAssociation(metaObject);

    }



when getting the association ends from an Entity facade it will only return 
only those ones that are tied to another Entity, we do that by overriding the 
method above (EntityLogicImpl.java line#666 
(http://galaxy.andromda.org/docs/andromda-metafacades-uml14/xref/org/andromda/metafacades/uml14/EntityLogicImpl.html#666))



    /**

     * Override to filter out any association ends that point to 
model elements other than other entities.

     *

     * @see 
org.andromda.metafacades.uml.ClassifierFacade#getAssociationEnds()

     */

    public Collection handleGetAssociationEnds()

    {

        final Collection associationEnds = 
this.shieldedElements(super.handleGetAssociationEnds());

        CollectionUtils.filter(

            associationEnds,

            new Predicate()

            {

                public boolean 
evaluate(Object object)

                {

                    return 
((AssociationEndFacade)object).getOtherEnd().getType()
 instanceof Entity;

                }

            });

        return associationEnds;

    }



so that's why your normal class can see the <<BusinessObject>> entity, but the 
<<BusinessObject>> entity can't see the normal class



makes sense ?
--
Wouter Zoons - [EMAIL PROTECTED]

http://www.andromda.org/
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2287#2287
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to