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

org.andromda.metafacades.uml14.CallEventFacadeLogicImpl 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.Collections;
import java.util.List;
import org.andromda.metafacades.uml.OperationFacade;
import org.omg.uml.behavioralelements.statemachines.CallEvent;
import org.omg.uml.foundation.core.Operation;

/**
 * MetafacadeLogic implementation.
 *
 * @see org.andromda.metafacades.uml.CallEventFacade
 * @author Bob Fields
 */
public class CallEventFacadeLogicImpl
    extends CallEventFacadeLogic
{
    private static final long serialVersionUID = 2227288018254321367L;

    /**
     * @param metaObject
     * @param context
     */
    public CallEventFacadeLogicImpl(
        CallEvent metaObject,
        String context)
    {
        super(metaObject, context);
    }

    /**
     * @see org.andromda.metafacades.uml.CallEventFacade#getOperation()
     */
    @Override
    public Operation handleGetOperation()
    {
        return metaObject.getOperation();
    }

    /**
     * @see org.andromda.metafacades.uml.CallEventFacade#getOperations()
     */
    @Override
    protected List handleGetOperations()
    {
        final OperationFacade operation = this.getOperation();
        return operation == null ? Collections.emptyList() : Collections.singletonList(operation);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy