Examples of FrontEndUseCase


Examples of org.andromda.metafacades.uml.FrontEndUseCase

    public String handleGetName()
    {
        String name = super.handleGetName();
        if (name == null)
        {
            FrontEndUseCase useCase = this.getTargetUseCase();
            if (useCase != null)
            {
                name = useCase.getName();
            }
        }
        return name;
    }
View Full Code Here

Examples of org.andromda.metafacades.uml.FrontEndUseCase

    /**
     * @see org.andromda.metafacades.uml.FrontEndForward#getUseCase()
     */
    protected Object handleGetUseCase()
    {
        FrontEndUseCase useCase = null;
        final FrontEndActivityGraph graph = this.getFrontEndActivityGraph();
        if (graph != null)
        {
            final UseCaseFacade graphUseCase = graph.getUseCase();
            if (graphUseCase instanceof FrontEndUseCase)
View Full Code Here

Examples of org.andromda.metafacades.uml.FrontEndUseCase

    /**
     * @see org.andromda.metafacades.uml.FrontEndForward#getUseCase()
     */
    protected Object handleGetUseCase()
    {
        FrontEndUseCase useCase = null;
        final FrontEndActivityGraph graph = this.getFrontEndActivityGraph();
        if (graph != null)
        {
            final UseCaseFacade graphUseCase = graph.getUseCase();
            if (graphUseCase instanceof FrontEndUseCase)
View Full Code Here

Examples of org.andromda.metafacades.uml.FrontEndUseCase

        // - For an action that starts the use case, we need to detect all usecases forwarding to the one
        //   belonging to this action if there are any parameters in those transitions we need to have
        //   them included in this action's form
        if (this.isUseCaseStart())
        {
            final FrontEndUseCase useCase = this.getUseCase();
            if (useCase != null)
            {
                final Collection finalStates = useCase.getReferencingFinalStates();
                for (final Iterator finalStateIterator = finalStates.iterator(); finalStateIterator.hasNext();)
                {
                    final Object finalStateObject = finalStateIterator.next();

                    // we need to test for the type because a non struts-use-case final state might accidently
View Full Code Here

Examples of org.andromda.metafacades.uml.FrontEndUseCase

        if (graphContext instanceof ActivityGraphFacade)
        {
            final UseCaseFacade graphUseCase = ((ActivityGraphFacade)graphContext).getUseCase();
            if (graphUseCase instanceof FrontEndUseCase)
            {
                final FrontEndUseCase useCase = (FrontEndUseCase)graphUseCase;
                packageName = useCase.getPackageName();
            }
        }
        return packageName;
    }
View Full Code Here

Examples of org.andromda.metafacades.uml.FrontEndUseCase

    public String handleGetName()
    {
        String name = super.handleGetName();
        if (name == null)
        {
            FrontEndUseCase useCase = this.getTargetUseCase();
            if (useCase != null)
            {
                name = useCase.getName();
            }
        }
        return name;
    }
View Full Code Here

Examples of org.andromda.metafacades.uml.FrontEndUseCase

     */
    protected java.lang.String handleGetPath()
    {
        String fullPath = null;

        FrontEndUseCase useCase = this.getTargetUseCase();
        if (useCase == null)
        {
            // - perhaps this final state links outside of the UML model
            final Object taggedValue = this.findTaggedValue(UMLProfile.TAGGEDVALUE_EXTERNAL_HYPERLINK);
            if (taggedValue == null)
View Full Code Here

Examples of org.andromda.metafacades.uml.FrontEndUseCase

    protected String handleGetActionPathRoot()
    {
        String actionPathRoot = null;

        final FrontEndUseCase useCase = this.getUseCase();
        if (useCase != null)
        {
            final StringBuffer buffer = new StringBuffer();

            final String actionPathPrefix = Bpm4StrutsGlobals.PROPERTY_ACTION_PATH_PREFIX;
            String prefix = this.isConfiguredProperty(actionPathPrefix) ? ObjectUtils
                .toString(this.getConfiguredProperty(actionPathPrefix)) : "";

            final ModelElementFacade useCasePackage = useCase.getPackage();
            if (useCasePackage != null)
            {
                prefix = prefix.replaceAll("\\{0\\}", useCasePackage.getPackagePath());
            }

            buffer.append(prefix);
            buffer.append('/');
            buffer.append(StringUtilsHelper.upperCamelCaseName(useCase.getName()));

            actionPathRoot = buffer.toString();
        }
        return actionPathRoot;
    }
View Full Code Here

Examples of org.andromda.metafacades.uml.FrontEndUseCase

    {
        final Collection roleUsers = new ArrayList();

        if (this.isUseCaseStart())
        {
            final FrontEndUseCase useCase = getUseCase();
            if (useCase != null)
            {
                roleUsers.addAll(useCase.getRoles());
            }
        }
        else
        {
            for (final Iterator iterator = getActionForwards().iterator(); iterator.hasNext();)
            {
                final TransitionFacade transition = (TransitionFacade) iterator.next();
                if (transition.getTarget() instanceof StrutsFinalState)
                {
                    final FrontEndUseCase useCase = ((StrutsFinalState) transition.getTarget()).getTargetUseCase();
                    if (useCase != null)
                    {
                        roleUsers.addAll(useCase.getRoles());
                    }
                }
            }
        }
View Full Code Here

Examples of org.andromda.metafacades.uml.FrontEndUseCase

         * for useCaseStart actions we need to detect all usecases forwarding to the one belonging to this action
         * if there are any parameters in those requests we need to have them included in this action's form
         */
        if (this.isUseCaseStart())
        {
            final FrontEndUseCase useCase = this.getUseCase();
            if (useCase != null)
            {
                final Collection finalStates = useCase.getReferencingFinalStates();
                for (final Iterator finalStateIterator = finalStates.iterator(); finalStateIterator.hasNext();)
                {
                    final Object finalStateObject = finalStateIterator.next();
                    // we need to test for the type because a non struts-use-case final state might accidently
                    // we linking to this use-case (for example: the user temporarily wants to disable code generation
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.