Package org.andromda.metafacades.uml

Examples of org.andromda.metafacades.uml.OperationFacade


                    final StrutsActionState actionState = (StrutsActionState)actionStateObject;
                    final Collection controllerCalls = actionState.getControllerCalls();
                    for (final Iterator controllerCallIterator = controllerCalls.iterator();
                         controllerCallIterator.hasNext();)
                    {
                        final OperationFacade operation = (OperationFacade)controllerCallIterator.next();
                        if (this.equals(operation))
                        {
                            deferringActions.addAll(actionState.getContainerActions());
                        }
                    }
View Full Code Here


        final List allArguments = new ArrayList();
        final Collection operations = this.getOperations();

        for (final Iterator operationIterator = operations.iterator(); operationIterator.hasNext();)
        {
            final OperationFacade operationFacade = (OperationFacade)operationIterator.next();
            final Collection arguments = operationFacade.getArguments();
            for (final Iterator argumentIterator = arguments.iterator(); argumentIterator.hasNext();)
            {
                final ParameterFacade parameterFacade = (ParameterFacade)argumentIterator.next();
                allArguments.add(parameterFacade);
            }
View Full Code Here

            implements Predicate
    {
        public boolean evaluate(Object object)
        {

            OperationFacade facadeOperation = (OperationFacade)object;
            boolean valid = StringUtils.trimToEmpty(facadeOperation.getName()).equals(
                    StringUtils.trimToEmpty(operation.getName()));
            // if we've found an operation with a matching name
            // check the parameters
            if (valid)
            {
View Full Code Here

        // to stay on the same view)
        if (formFieldMap.isEmpty() && this.getActionForwards().isEmpty())
        {
            for (final Iterator iterator = this.getDeferredOperations().iterator(); iterator.hasNext();)
            {
                final OperationFacade operation = (OperationFacade)iterator.next();
                for (final Iterator parameterIterator = operation.getArguments().iterator();
                    parameterIterator.hasNext();)
                {
                    final ParameterFacade parameter = (ParameterFacade)parameterIterator.next();
                    formFieldMap.put(
                        parameter.getName(),
View Full Code Here

                    final FrontEndActionState actionState = (FrontEndActionState)actionStateObject;
                    final Collection controllerCalls = actionState.getControllerCalls();
                    for (final Iterator controllerCallIterator = controllerCalls.iterator();
                        controllerCallIterator.hasNext();)
                    {
                        final OperationFacade operation = (OperationFacade)controllerCallIterator.next();
                        if (this.equals(operation))
                        {
                            deferringActions.addAll(actionState.getContainerActions());
                        }
                    }
View Full Code Here

                    final FrontEndActionState actionState = (FrontEndActionState)actionStateObject;
                    final Collection controllerCalls = actionState.getControllerCalls();
                    for (final Iterator controllerCallIterator = controllerCalls.iterator();
                        controllerCallIterator.hasNext();)
                    {
                        final OperationFacade operation = (OperationFacade)controllerCallIterator.next();
                        if (this.equals(operation))
                        {
                            deferringActions.addAll(actionState.getContainerActions());
                        }
                    }
View Full Code Here

        if (operations != null && !operations.isEmpty())
        {
            Iterator operationIt = operations.iterator();
            while (operationIt.hasNext())
            {
                OperationFacade operation = (OperationFacade)operationIt.next();
                methodNames.add(StringUtils.trimToEmpty(operation.getName()));
            }
        }
        return StringUtils.join(
            methodNames.iterator(),
            " ");
View Full Code Here

        final Collection exceptions = new HashSet();

        // collect the exceptions of all allowed operations into a single set
        for (Iterator i = this.getAllowedOperations().iterator(); i.hasNext();)
        {
            final OperationFacade operation = (OperationFacade)i.next();
            exceptions.addAll(operation.getExceptions());
        }

        return exceptions;
    }
View Full Code Here

            ModelElementFacade equalParameter = null;
            final String equal = JSFUtils.getEqual(element, null);
            if (element instanceof ParameterFacade)
            {
                final FrontEndParameter parameter = (FrontEndParameter)element;
                final OperationFacade operation = parameter.getOperation();
                if (operation != null)
                {
                    equalParameter = operation.findParameter(equal);
                }
                if (equalParameter == null)
                {
                    final FrontEndAction action = parameter.getAction();
                    if (action != null)
View Full Code Here

        do
        {
            Collection ops = entity.getOperations();
            for (final Iterator i = ops.iterator(); i.hasNext();)
            {
                OperationFacade op = (OperationFacade)i.next();
                if (op.hasStereotype(EJBProfile.STEREOTYPE_CREATE_METHOD))
                {
                    retval.add(op);
                }
            }
            if (follow)
View Full Code Here

TOP

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

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.