Package java.util

Examples of java.util.ArrayList.addAll()


        high_priority_entities = high_new;
      }
      else {
        //copy-on-write
        ArrayList norm_new = new ArrayList( normal_priority_entities.size() + 1 );
        norm_new.addAll( normal_priority_entities );
        norm_new.add( entity );
        normal_priority_entities = norm_new;
      }
     
      entity_count = normal_priority_entities.size() + high_priority_entities.size();
View Full Code Here


    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

    protected Collection shieldedElements(final Collection metaobjects)
    {
        final List metafacades = new ArrayList();
        if (metaobjects != null)
        {
            metafacades.addAll(metaobjects);
            for (final ListIterator iterator = metafacades.listIterator(); iterator.hasNext();)
            {
                iterator.set(this.shieldedElement(iterator.next()));
            }
        }
View Full Code Here

        final List actionParameters = new ArrayList();
        final Collection actions = getActions();
        for (final Iterator iterator = actions.iterator(); iterator.hasNext();)
        {
            final StrutsAction action = (StrutsAction)iterator.next();
            actionParameters.addAll(action.getActionParameters());
        }
        return actionParameters;
    }

    /**
 
View Full Code Here

    public static List getInterfaces(final String className)
    {
        final List interfaces = new ArrayList();
        if (className != null && className.trim().length() > 0)
        {
            interfaces.addAll(getInterfaces(ClassUtils.loadClass(className.trim())));
        }
        return interfaces;
    }

    /**
 
View Full Code Here

    public static List getInterfaces(final Class clazz)
    {
        final List interfaces = new ArrayList();
        if (clazz != null)
        {
            interfaces.addAll(ClassUtils.getAllInterfaces(clazz));
            if (clazz.isInterface())
            {
                interfaces.add(
                    0,
                    clazz);
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

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.