Package java.util

Examples of java.util.Collection.addAll()


        {
            final Collection mappingsLocations = new ArrayList();
            final Location[] locations = this.getMappingsSearchLocations();
            for (int ctr = 0; ctr < locations.length; ctr++)
            {
                mappingsLocations.addAll(Arrays.asList(locations[ctr].getResources()));
            }

            // clear out any old cached mappings
            Mappings.clearLogicalMappings();
View Full Code Here


        Entity superElement = (Entity)this.getGeneralization();
        Collection result = this.getBusinessOperations();

        while (superElement != null)
        {
            result.addAll(superElement.getBusinessOperations());
            superElement = (Entity)superElement.getGeneralization();
        }

        return result;
    }
View Full Code Here

        for (final Iterator iterator = collection.iterator(); iterator.hasNext();)
        {
            final Object object = iterator.next();
            if (object instanceof Collection)
            {
                flattenedCollection.addAll(flatten((Collection)object));
            }
            else
            {
                flattenedCollection.add(object);
            }
View Full Code Here

    private Collection importedMethods_compute(String name) {
    Collection list = new ArrayList();
    for(int i = 0; i < getNumImportDecl(); i++)
      if(!getImportDecl(i).isOnDemand())
        list.addAll(getImportDecl(i).importedMethods(name));
    return list;
  }

    // Declared in StaticImports.jrag at line 148
@SuppressWarnings({"unchecked", "cast"})     public Collection importedMethodsOnDemand(String name) {
View Full Code Here

    private Collection importedMethodsOnDemand_compute(String name) {
    Collection list = new ArrayList();
    for(int i = 0; i < getNumImportDecl(); i++)
      if(getImportDecl(i).isOnDemand())
        list.addAll(getImportDecl(i).importedMethods(name));
    return list;
  }

    // Declared in LookupType.jrag at line 99
@SuppressWarnings({"unchecked", "cast"})     public TypeDecl lookupType(String packageName, String typeName) {
View Full Code Here

            {
                public void execute(Object object)
                {
                    if (object instanceof Service)
                    {
                        allRoles.addAll(((Service)object).getAllRoles());
                    }
                }
            });
        return allRoles;
    }
View Full Code Here

        Collection regions = this.metaObject.getRegions();
        Collection transitions = new LinkedList();
        for (Iterator it = regions.iterator(); it.hasNext();)
        {
            Region region = (Region)it.next();
            transitions.addAll(region.getTransitions());
        }
        return transitions;
    }

    /**
 
View Full Code Here

        Collection regions = this.metaObject.getRegions();
        Collection subvertices = new LinkedList();
        for (Iterator it = regions.iterator(); it.hasNext();)
        {
            Region region = (Region)it.next();
            subvertices.addAll(region.getSubvertices());
        }
        return this.filter(
            subvertices,
            collectionFilter);
    }
View Full Code Here

        if (type != null && type.isArrayType())
        {
            final ClassifierFacade nonArrayType = type.getNonArray();
            if (nonArrayType != null)
            {
                nonArrayAttributes.addAll(nonArrayType.getAttributes(true));
            }
        }
        return nonArrayAttributes;
    }
View Full Code Here

    protected List handleGetAllRoles()
    {
        final Collection allRoles = new LinkedHashSet();
        for (final Iterator iterator = this.getAllUseCases().iterator(); iterator.hasNext();)
        {
            allRoles.addAll(((FrontEndUseCase)iterator.next()).getRoles());
        }
        return new ArrayList(allRoles);
    }

    /**
 
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.