Package java.util

Examples of java.util.LinkedHashSet$MyIterator


        return AssociationClass.class.isAssignableFrom(this.metaObject.getClass());
    }

    protected Collection handleGetAssociatedClasses()
    {
        final Set associatedClasses = new LinkedHashSet();

        final List associationEnds = this.getAssociationEnds();
        for (int i = 0; i < associationEnds.size(); i++)
        {
            final AssociationEndFacade associationEndFacade = (AssociationEndFacade)associationEnds.get(i);
            associatedClasses.add(associationEndFacade.getOtherEnd().getType());
        }

        return associatedClasses;
    }
View Full Code Here


        return associatedClasses;
    }

    protected Collection handleGetAllAssociatedClasses()
    {
        final Set associatedClasses = new LinkedHashSet();
        associatedClasses.addAll(this.getAssociatedClasses());
        for (Iterator parentIterator = this.getGeneralizations().iterator(); parentIterator.hasNext();)
        {
            final ClassifierFacade parent = (ClassifierFacade)parentIterator.next();
            associatedClasses.addAll(parent.getAllAssociatedClasses());
        }

        return associatedClasses;
    }
View Full Code Here

     *
     * @param hyperlink denotes on which type of actions to filter
     */
    private final List getTableActions(boolean hyperlink)
    {
        final Set actions = new LinkedHashSet();
        final String name = StringUtils.trimToNull(getName());
        if (name != null && isTable())
        {
            final JSFView view = (JSFView)this.getView();

            final Collection allUseCases = getModel().getAllUseCases();
            for (final Iterator useCaseIterator = allUseCases.iterator(); useCaseIterator.hasNext();)
            {
                final UseCaseFacade useCase = (UseCaseFacade)useCaseIterator.next();
                if (useCase instanceof JSFUseCase)
                {
                    final FrontEndActivityGraph graph = ((JSFUseCase)useCase).getActivityGraph();
                    if (graph != null)
                    {
                        final Collection transitions = graph.getTransitions();
                        for (final Iterator transitionIterator = transitions.iterator(); transitionIterator.hasNext();)
                        {
                            final TransitionFacade transition = (TransitionFacade)transitionIterator.next();
                            if (transition.getSource().equals(view) && transition instanceof JSFAction)
                            {
                                final JSFAction action = (JSFAction)transition;
                                if (action.isTableLink() && name.equals(action.getTableLinkName()))
                                {
                                    if (hyperlink == action.isHyperlink())
                                    {
                                        actions.add(action);
                                    }
                                }
                            }
                        }
                    }
View Full Code Here

    {
        final List columnActions = new ArrayList();

        if (columnName != null)
        {
            final Set actions = new LinkedHashSet(this.getTableHyperlinkActions());
            actions.addAll(this.getTableFormActions());
            for (final Iterator iterator = actions.iterator(); iterator.hasNext();)
            {
                final JSFAction action = (JSFAction)iterator.next();
                if (columnName.equals(action.getTableLinkColumnName()))
                {
                    columnActions.add(action);
View Full Code Here

                            else
                            {
                                metafacades = modelElement.getMetafacades();
                                templateContext.put(
                                    modelElementVariable,
                                    new LinkedHashSet(metafacades));
                            }
                        }
                    }
                    this.processWithTemplate(
                        template,
View Full Code Here

     *
     * @return Collection of all metafacades.
     */
    public Set getAllMetafacades()
    {
        final Set allMetafacades = new LinkedHashSet();
        for (final Iterator iterator = this.modelElements.iterator(); iterator.hasNext();)
        {
            allMetafacades.addAll(((ModelElement)iterator.next()).getMetafacades());
        }
        return allMetafacades;
    }
View Full Code Here

            return Collections.EMPTY_LIST;
        }

        final StrutsJsp page = this.getJsp();

        final Collection tableActions = new LinkedHashSet();

        final Collection allUseCases = getModel().getAllUseCases();
        for (final Iterator useCaseIterator = allUseCases.iterator(); useCaseIterator.hasNext();)
        {
            final UseCaseFacade useCase = (UseCaseFacade)useCaseIterator.next();
            if (useCase instanceof StrutsUseCase)
            {
                final FrontEndActivityGraph graph = ((StrutsUseCase)useCase).getActivityGraph();
                if (graph != null)
                {
                    final Collection transitions = graph.getTransitions();
                    for (final Iterator transitionIterator = transitions.iterator(); transitionIterator.hasNext();)
                    {
                        final TransitionFacade transition = (TransitionFacade)transitionIterator.next();
                        if (transition.getSource().equals(page) && transition instanceof StrutsAction)
                        {
                            final StrutsAction action = (StrutsAction)transition;
                            if (action.isTableLink() && name.equals(action.getTableLinkName()))
                            {
                                if ((hyperlink && action.isHyperlink()) ||
                                    (formPost && action.isFormPost()) ||
                                    (tableAction && action.isTableAction()))
                                {
                                    tableActions.add(action);
                                }
                            }
                        }
                    }
                }
View Full Code Here

     * Initializes all action states, action forwards, decision transitions and transitions in one shot, so that they
     * can be queried more effiencently later on.
     */
    private void initializeCollections()
    {
        actionStates = new LinkedHashSet();
        actionForwards = new HashMap();
        decisionTransitions = new LinkedHashSet();
        transitions = new LinkedHashSet();
        collectTransitions(this, transitions);
    }
View Full Code Here

        return new ArrayList(actionStates);
    }

    protected List handleGetActionExceptions()
    {
        final Collection exceptions = new LinkedHashSet();
        final Collection actionStates = getActionStates();
        for (final Iterator iterator = actionStates.iterator(); iterator.hasNext();)
        {
            StrutsActionState actionState = (StrutsActionState) iterator.next();
            exceptions.addAll(actionState.getExceptions());
        }

        return new ArrayList(exceptions);
    }
View Full Code Here

        return new ArrayList(formFieldMap.values());
    }

    protected List handleGetDeferredOperations()
    {
        final Collection deferredOperations = new LinkedHashSet();

        final StrutsController controller = getController();
        if (controller != null)
        {
            final List actionStates = getActionStates();
            for (int i = 0; i < actionStates.size(); i++)
            {
                final StrutsActionState actionState = (StrutsActionState) actionStates.get(i);
                deferredOperations.addAll(actionState.getControllerCalls());
            }

            final List transitions = getDecisionTransitions();
            for (int i = 0; i < transitions.size(); i++)
            {
                final StrutsForward forward = (StrutsForward) transitions.get(i);
                final FrontEndEvent trigger = forward.getDecisionTrigger();
                if (trigger != null)
                {
                    deferredOperations.add(trigger.getControllerCall());
                }
            }
        }
        return new ArrayList(deferredOperations);
    }
View Full Code Here

TOP

Related Classes of java.util.LinkedHashSet$MyIterator

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.