Package java.util

Examples of java.util.Collection.addAll()


    public String[] getImplements(JavaClass javaClass) {
        ValueObjectMetadata metaVo = getMetaVO(javaClass);
        Collection implementsLst = new ArrayList();

        if (metaVo.getValueTag().getImplements() != null) {
            implementsLst.addAll(Arrays.asList(metaVo.getValueTag().getImplements()));
        }

        if (metaVo.isStrictOrdering() && !implementsLst.contains(Comparable.class.getName())) {
            implementsLst.add(Comparable.class.getName());
        }
View Full Code Here


        public Relation[] getRelationsByName(String relationName) {
            Collection retVal = new ArrayList();
            LinkedHashMap mapFor = (LinkedHashMap) relations.get(relationName);

            if (mapFor != null) {
                retVal.addAll(validateAndCreateRelations(relationName, mapFor));
            }

            return (Relation[]) retVal.toArray(new Relation[0]);
        }
View Full Code Here

    public String[] getExtends(JavaClass javaClass) {
        Collection extendsLst = new ArrayList();
        EjbHomeTag homeTag = (EjbHomeTag) javaClass.getTagByName(TagLibrary.EJB_HOME);

        if ((homeTag != null) && (homeTag.getLocalExtends() != null)) {
            extendsLst.addAll(Arrays.asList(homeTag.getLocalExtends()));
        }

        if (!extendsLst.contains("javax.ejb.EJBLocalHome")) {
            extendsLst.add("javax.ejb.EJBLocalHome");
        }
View Full Code Here

        if (this.isAbstract())
        {
            return Collections.EMPTY_LIST;
        }
        Collection result = new ArrayList();
        result.addAll(getEntityRelations());
        ClassifierFacade classifier = (ClassifierFacade)this.getGeneralization();
        while (classifier != null && classifier instanceof EJBEntityFacade && classifier.isAbstract())
        {
            EJBEntityFacade entity = (EJBEntityFacade)classifier;
            result.addAll(entity.getEntityRelations());
View Full Code Here

        result.addAll(getEntityRelations());
        ClassifierFacade classifier = (ClassifierFacade)this.getGeneralization();
        while (classifier != null && classifier instanceof EJBEntityFacade && classifier.isAbstract())
        {
            EJBEntityFacade entity = (EJBEntityFacade)classifier;
            result.addAll(entity.getEntityRelations());
            classifier = (ClassifierFacade)classifier.getGeneralization();
        }
        return result;
    }
View Full Code Here

        final Collection generalizations = new ArrayList();
        for (final Iterator iterator = this.getGeneralizations().iterator(); iterator.hasNext();)
        {
            final GeneralizableElementFacade element = (GeneralizableElementFacade)iterator.next();
            generalizations.add(element);
            generalizations.addAll(element.getAllGeneralizations());
        }
        return generalizations;
    }

    // ------------- relations ------------------
View Full Code Here

            superClass = (ClassifierFacade)superClass.getGeneralization())
        {
            if (Entity.class.isAssignableFrom(superClass.getClass()))
            {
                Entity entity = (Entity)superClass;
                queryOperations.addAll(entity.getQueryOperations());
            }
        }
        return queryOperations;
    }
View Full Code Here

    protected Collection handleGetAllEntityReferences()
    {
        final Collection result = new LinkedHashSet();

        // get references of the service itself
        result.addAll(this.getEntityReferences());

        // get references of all super classes
        CollectionUtils.forAllDo(this.getAllGeneralizations(), new Closure()
        {
            public void execute(Object object)
View Full Code Here

            public void execute(Object object)
            {
                if (object instanceof Entity)
                {
                    final Entity entity = (Entity)object;
                    result.addAll(entity.getEntityReferences());
                }
            }

        });
        return result;
View Full Code Here

        {
            final List actionStates = this.getActionStates();
            for (int ctr = 0; ctr < actionStates.size(); ctr++)
            {
                final FrontEndActionState actionState = (FrontEndActionState)actionStates.get(ctr);
                deferredOperations.addAll(actionState.getControllerCalls());
            }

            final List transitions = this.getDecisionTransitions();
            for (int ctr = 0; ctr < transitions.size(); ctr++)
            {
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.