Package org.andromda.metafacades.uml

Examples of org.andromda.metafacades.uml.TransitionFacade


    {
        Object forward = null;

        for (final Iterator iterator = this.getOutgoing().iterator(); iterator.hasNext() && forward == null;)
        {
            final TransitionFacade transition = (TransitionFacade)iterator.next();
            if (!(transition instanceof FrontEndExceptionHandler))
            {
                forward = transition;
            }
        }
View Full Code Here


    {
        final Set exceptions = new LinkedHashSet();
        final Collection outgoing = getOutgoing();
        for (final Iterator iterator = outgoing.iterator(); iterator.hasNext();)
        {
            final TransitionFacade transition = (TransitionFacade)iterator.next();
            if (transition instanceof FrontEndExceptionHandler)
            {
                exceptions.add(transition);
            }
        }
View Full Code Here

     * @see org.andromda.metafacades.uml.FrontEndEvent#getAction()
     */
    protected Object handleGetAction()
    {
        FrontEndAction action = null;
        TransitionFacade transition = getTransition();
        if (transition instanceof FrontEndAction)
        {
            action = (FrontEndAction)transition;
        }
        return action;
View Full Code Here

        for (final Iterator iterator = this.getOutgoing().iterator(); iterator
                .hasNext()
                && forward == null;)
        {
            final TransitionFacade transition = (TransitionFacade)iterator
                    .next();
            if (!(transition instanceof FrontEndExceptionHandler))
            {
                forward = transition;
            }
View Full Code Here

    {
        final Set exceptions = new LinkedHashSet();
        final Collection outgoing = this.getOutgoing();
        for (final Iterator iterator = outgoing.iterator(); iterator.hasNext();)
        {
            final TransitionFacade transition = (TransitionFacade)iterator
                    .next();
            if (transition instanceof FrontEndExceptionHandler)
            {
                exceptions.add(transition);
            }
View Full Code Here

     * @see org.andromda.metafacades.uml.FrontEndEvent#getAction()
     */
    protected Object handleGetAction()
    {
        FrontEndAction action = null;
        TransitionFacade transition = this.getTransition();
        if (transition instanceof FrontEndAction)
        {
            action = (FrontEndAction)transition;
        }
        return action;
View Full Code Here

    {
        final Map exceptionsMap = new LinkedHashMap();
        final Collection outgoing = getOutgoing();
        for (final Iterator iterator = outgoing.iterator(); iterator.hasNext();)
        {
            final TransitionFacade transition = (TransitionFacade)iterator.next();
            if (transition instanceof StrutsExceptionHandler)
            {
                exceptionsMap.put(((StrutsExceptionHandler)transition).getExceptionKey(), transition);
            }
        }
View Full Code Here

                }

                final Collection transitions = graph.getTransitions();
                for (final Iterator transitionIterator = transitions.iterator(); transitionIterator.hasNext();)
                {
                    final TransitionFacade transition = (TransitionFacade)transitionIterator.next();
                    final EventFacade event = transition.getTrigger();
                    if (event != null)
                    {
                        if (event instanceof JBpmAction)
                        {
                            final JBpmAction action = (JBpmAction)event;
View Full Code Here

                {
                    StrutsAction action = (StrutsAction)actionIterator.next();
                    Collection transitions = action.getTransitions();
                    for (final Iterator transitionIterator = transitions.iterator(); transitionIterator.hasNext();)
                    {
                        TransitionFacade transition = (TransitionFacade)transitionIterator.next();
                        if (this.equals(transition.getTarget()))
                        {
                            actionSet.add(action);
                        }
                    }
                }
View Full Code Here

        {
            decisionTransitions.add(transition);
            final Collection outcomes = target.getOutgoing();
            for (final Iterator iterator = outcomes.iterator(); iterator.hasNext();)
            {
                final TransitionFacade outcome = (TransitionFacade) iterator.next();
                collectTransitions(outcome, processedTransitions);
            }
        }
        else if (target instanceof StrutsActionState)
        {
            actionStates.add(target);
            final FrontEndForward forward = ((StrutsActionState) target).getForward();
            if (forward != null)
            {
                collectTransitions(forward, processedTransitions);
            }
        }
        else // all the rest is ignored but outgoing transitions are further processed
        {
            final Collection outcomes = target.getOutgoing();
            for (final Iterator iterator = outcomes.iterator(); iterator.hasNext();)
            {
                final TransitionFacade outcome = (TransitionFacade) iterator.next();
                collectTransitions(outcome, processedTransitions);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.andromda.metafacades.uml.TransitionFacade

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.