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

org.andromda.metafacades.uml14.LinkEndFacadeLogicImpl Maven / Gradle / Ivy

Go to download

The UML 1.4 metafacades. This is the set of UML 1.4 metafacades implementations. These implement the common UML metafacades.

The newest version!
package org.andromda.metafacades.uml14;

import java.util.Collection;
import java.util.Collections;
import org.andromda.metafacades.uml.InstanceFacade;
import org.omg.uml.behavioralelements.commonbehavior.Instance;
import org.omg.uml.behavioralelements.commonbehavior.Link;
import org.omg.uml.foundation.core.AssociationEnd;
import org.omg.uml.behavioralelements.commonbehavior.LinkEnd;

/**
 * MetafacadeLogic implementation for org.andromda.metafacades.uml.LinkEndFacade.
 *
 * @see org.andromda.metafacades.uml.LinkEndFacade
 * @author Bob Fields
 */
public class LinkEndFacadeLogicImpl
    extends LinkEndFacadeLogic
{
    private static final long serialVersionUID = 4827547532134623488L;

    /**
     * @param metaObject
     * @param context
     */
    public LinkEndFacadeLogicImpl (LinkEnd metaObject, String context)
    {
        super (metaObject, context);
    }

    /**
     * @see org.andromda.metafacades.uml.LinkEndFacade#getInstance()
     */
    @Override
    protected Instance handleGetInstance()
    {
        return metaObject.getInstance();
    }

    /**
     * @see org.andromda.metafacades.uml.LinkEndFacade#getAssociationEnd()
     */
    @Override
    protected AssociationEnd handleGetAssociationEnd()
    {
        return metaObject.getAssociationEnd();
    }

    /**
     * @see org.andromda.metafacades.uml.LinkEndFacade#getLink()
     */
    @Override
    protected Link handleGetLink()
    {
        return metaObject.getLink();
    }

    /**
     * @see org.andromda.metafacades.uml.LinkEndFacade#getInstances()
     */
    @Override
    protected Collection handleGetInstances()
    {
        return Collections.singleton(this.getInstance());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy