Package java.util

Examples of java.util.ArrayList.toArray()


        if (!extendsLst.contains("javax.ejb.EJBObject")) {
            extendsLst.add("javax.ejb.EJBObject");
        }

        return (String[]) extendsLst.toArray(new String[0]);
    }

    public boolean shouldGenerate(Object metadata) {
        JavaClass javaClass = (JavaClass) metadata;
        EjbInterfaceTag interfaceTag = (EjbInterfaceTag) javaClass.getTagByName(TagLibrary.EJB_INTERFACE);
View Full Code Here


        if (!extendsLst.contains("javax.ejb.EJBLocalObject")) {
            extendsLst.add("javax.ejb.EJBLocalObject");
        }

        return (String[]) extendsLst.toArray(new String[0]);
    }

    public boolean shouldGenerate(Object metadata) {
        JavaClass javaClass = (JavaClass) metadata;
        EjbInterfaceTag interfaceTag = (EjbInterfaceTag) javaClass.getTagByName(TagLibrary.EJB_INTERFACE);
View Full Code Here

            }
           
            //
            // Convert the ArrayList of binding files into a native array.
            //
            bindings = (String[])paths.toArray(new String[paths.size()]);
        }
       
        //
        // If verbose mode is on, print out the binding files
        // we are using.
View Full Code Here

                enumpairs.add(new StringPair(value, constname));
            }
        }
       
        // sort the pairs by value text
        StringPair[] pairs = (StringPair[])enumpairs.toArray(new StringPair[enumpairs.size()]);
        Arrays.sort(pairs);
       
        // create array of sorted text values
        String valuesname = m_nameConverter.toStaticFieldName("values");
        NewArrayBuilder array = clasbuilder.newArrayBuilder("java.lang.String");
View Full Code Here

                fpaths.add(path.getPath());
            }
        }
       
        // set paths to be used for loading referenced classes
        String[] dirs = (String[])fpaths.toArray(new String[0]);
        ClassCache.setPaths(dirs);
        ClassFile.setPaths(dirs);
        ClasspathUrlExtender.setClassLoader(ClassFile.getClassLoader());
           
        // reset static information accumulation for binding
View Full Code Here

        if (!implementsLst.contains("java.io.Serializable")) {
            implementsLst.add("java.io.Serializable");
        }

        return (String[]) implementsLst.toArray(new String[0]);
    }

    /**
     * JavaClass that describes the generated artifacts
     *
 
View Full Code Here

            if (parent != null) {
                retVal.addAll(Arrays.asList(parent.getProperties()));
                retVal.addAll(Arrays.asList(parent.getParentProperties()));
            }

            return (BeanProperty[]) retVal.toArray(new BeanProperty[0]);
        }

        public EjbJavaType getType() {
            return type;
        }
View Full Code Here

                ordereds.add(schema);
            }
        }
       
        // validate the schemas in order
        SchemaElement[] ordschemas = (SchemaElement[])ordereds.toArray(new SchemaElement[ordereds.size()]);
        validateSchemas(ordschemas);
        return ordschemas;
    }
   
    /**
 
View Full Code Here

                ordereds.add(schema);
            }
        }
       
        // validate the schemas in order
        SchemaElement[] ordschemas = (SchemaElement[])ordereds.toArray(new SchemaElement[ordereds.size()]);
        validateSchemas(ordschemas, vctx);
        return ordschemas;
    }
   
    /**
 
View Full Code Here

        };
        ArrayList list = Utility.deserializeList(text, ldser);
        if (list == null) {
            return null;
        } else {
            return (String[])list.toArray(new String[list.size()]);
        }
    }
   
    /**
     * Serialize an array of strings into a whitespace-separated token list.
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.