Package java.util

Examples of java.util.Collection.addAll()


        {
            for (
                GeneralizableElementFacade entity = this.getGeneralization(); entity != null;
                entity = entity.getGeneralization())
            {
                sourceDependencies.addAll(entity.getSourceDependencies());
            }
        }
        return new FilteredCollection(sourceDependencies)
            {
                public boolean evaluate(Object object)
View Full Code Here


        {
            TemplateableElement templateableElement = (TemplateableElement)this.metaObject;
            TemplateSignature templateSignature = templateableElement.getOwnedTemplateSignature();
            if (templateSignature != null)
            {
                templateParameters.addAll(templateSignature.getParameters());
            }
        }
        return templateParameters;
    }
}
View Full Code Here

            // - if we have namespace mappings, add them
            if (metafacadeMappings != null)
            {
                mappings.addAll(metafacadeMappings.mappings);
                propertyReferences.addAll(metafacadeMappings.propertyReferences);
            }

            for (final Iterator mappingIterator = mappings.iterator(); mappingIterator.hasNext();)
            {
                final MetafacadeMapping mapping = (MetafacadeMapping)mappingIterator.next();
View Full Code Here

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

                if (transition.getTarget() instanceof StrutsFinalState)
                {
                    final FrontEndUseCase useCase = ((StrutsFinalState) transition.getTarget()).getTargetUseCase();
                    if (useCase != null)
                    {
                        roleUsers.addAll(useCase.getRoles());
                    }
                }
            }
        }
View Full Code Here

        {
            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++)
            {
View Full Code Here

     * @see org.andromda.metafacades.uml.TaggedValueFacade#getValues()
     */
    public Collection handleGetValues()
    {
        final Collection values = new ArrayList();
        values.addAll(metaObject.getDataValue());
        values.addAll(this.shieldedElements(metaObject.getReferenceValue()));
        return values;
    }

    /**
 
View Full Code Here

     */
    public Collection handleGetValues()
    {
        final Collection values = new ArrayList();
        values.addAll(metaObject.getDataValue());
        values.addAll(this.shieldedElements(metaObject.getReferenceValue()));
        return values;
    }

    /**
     * @see org.andromda.metafacades.uml.TaggedValueFacade#getValue()
View Full Code Here

        final Collection allSourceDependencies = new LinkedHashSet(this.getSourceDependencies());
        for (
            GeneralizableElementFacade parent = this.getGeneralization(); parent != null;
            parent = parent.getGeneralization())
        {
            allSourceDependencies.addAll(parent.getSourceDependencies());
        }
        boolean present =
            CollectionUtils.find(
                allSourceDependencies,
                new Predicate()
View Full Code Here

     * @see org.andromda.metafacades.uml.OperationFacade#getParameters()
     */
    protected java.util.Collection handleGetParameters()
    {
        final Collection params = new ArrayList(this.metaObject.getOwnedParameters());
        params.addAll(this.metaObject.getReturnResults());
        CollectionUtils.filter(
            params,
            new Predicate()
            {
                public boolean evaluate(final Object object)
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.