All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.andromda.metafacades.emf.uml22.TemplateArgumentFacadeLogicImpl Maven / Gradle / Ivy

Go to download

The Eclipse EMF UML2 v2.X metafacades. This is the set of EMF UML2 2.X metafacades implementations. These implement the common UML metafacades for .uml model files.

The newest version!
package org.andromda.metafacades.emf.uml22;

import org.eclipse.uml2.uml.ParameterableElement;
import org.eclipse.uml2.uml.TemplateParameterSubstitution;

/**
 * MetafacadeLogic implementation for
 * org.andromda.metafacades.uml.TemplateArgumentFacade.
 *
 * @see org.andromda.metafacades.uml.TemplateArgumentFacade
 */
public class TemplateArgumentFacadeLogicImpl
    extends TemplateArgumentFacadeLogic
{
    private static final long serialVersionUID = 6177943588326576358L;

    /**
     * @param metaObject
     * @param context
     */
    public TemplateArgumentFacadeLogicImpl(
        final TemplateParameterSubstitution metaObject,
        final String context)
    {
        super(metaObject, context);
    }

    /**
     * @see org.andromda.metafacades.uml.TemplateArgumentFacade#getElement()
     */
    @Override
    protected ParameterableElement handleGetElement()
    {
        // TODO: Be sure it works with RSM / MD11.5
        // It may be ownedActual. UML2 3.0 uses getActual(). v2 uses getActuals()
        return this.metaObject.getActual();
        /*Collection actuals = new ArrayList(this.metaObject.getActuals());
        if (actuals.isEmpty())
        {
            return null;
        }
        return actuals.iterator().next();*/
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy