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

org.andromda.metafacades.uml14.GuardFacadeLogicImpl 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 org.omg.uml.behavioralelements.statemachines.Guard;
import org.omg.uml.behavioralelements.statemachines.Transition;
import org.omg.uml.foundation.datatypes.BooleanExpression;

/**
 * MetafacadeLogic implementation.
 *
 * @see org.andromda.metafacades.uml.GuardFacade
 * @author Bob Fields
 */
public class GuardFacadeLogicImpl
        extends GuardFacadeLogic
{
    private static final long serialVersionUID = -6392947981148041940L;

    /**
     * @param metaObject
     * @param context
     */
    public GuardFacadeLogicImpl(Guard metaObject,
                                String context)
    {
        super(metaObject, context);
    }

    /**
     * @see org.andromda.metafacades.uml14.GuardFacadeLogic#handleGetTransition()
     */
    protected Transition handleGetTransition()
    {
        return metaObject.getTransition();
    }

    /**
     * @see org.andromda.metafacades.uml14.GuardFacadeLogic#handleGetBody()
     */
    protected String handleGetBody()
    {
        final BooleanExpression expression = metaObject.getExpression();
        return (expression == null) ? null : expression.getBody();
    }

    /**
     * @see org.andromda.core.metafacade.MetafacadeBase#getValidationOwner()
     */
    public Object getValidationOwner()
    {
        return getTransition();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy