Package org.omg.uml.foundation.core

Examples of org.omg.uml.foundation.core.ModelElement


        {
            String id = facade.getId();
            Collection events = getModel().getStateMachines().getEvent().refAllOfType();
            for (final Iterator iterator = events.iterator(); iterator.hasNext() && event == null;)
            {
                ModelElement element = (ModelElement)iterator.next();
                if (id.equals(element.refMofId()))
                {
                    event = (Event)element;
                }
            }
        }
View Full Code Here


     * @param facade the model element facade for which to find the meta class.
     * @return the meta model element
     */
    static ModelElement getMetaClass(ModelElementFacade facade)
    {
        ModelElement modelElement = null;

        if (facade != null)
        {
            String id = facade.getId();
            Collection modelElements = getModel().getCore().getModelElement().refAllOfType();
            for (final Iterator iterator = modelElements.iterator(); iterator.hasNext() && modelElement == null;)
            {
                ModelElement element = (ModelElement)iterator.next();
                if (id.equals(element.refMofId()))
                {
                    modelElement = element;
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.omg.uml.foundation.core.ModelElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.