Examples of listIterator()


Examples of java.util.List.listIterator()

            final String delimiter = "!/";
            final String archivePath = urlAsString.replaceAll(
                    delimiter + ".*",
                    delimiter);
            contents = ResourceUtils.getClassPathArchiveContents(url);
            for (final ListIterator iterator = contents.listIterator(); iterator.hasNext();)
            {
                final String relativePath = (String)iterator.next();
                final String fullPath = archivePath + relativePath;
                if (!fullPath.startsWith(urlAsString) || fullPath.equals(urlAsString + FORWARD_SLASH))
                {
View Full Code Here

Examples of java.util.List.listIterator()

    {
        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()));
            }
        }
        return metafacades;
View Full Code Here

Examples of java.util.List.listIterator()

            //  (using the implementation name pattern).
            final String pattern = this.getMetaclassPattern();
            if (StringUtils.isNotBlank(pattern))
            {
                hierarchy = new ArrayList(ClassUtils.getAllInterfaces(mappingObject.getClass()));
                for (final ListIterator iterator = hierarchy.listIterator(); iterator.hasNext();)
                {
                    final Class metafacadeInterface = (Class)iterator.next();
                    final String packageName = ClassUtils.getPackageName(metafacadeInterface);
                    final String name = ClassUtils.getShortClassName(metafacadeInterface);
View Full Code Here

Examples of java.util.List.listIterator()

        if (contexts == null)
        {
            contexts = ClassUtils.getInterfaces(context);
            if (contexts != null)
            {
                for (final ListIterator iterator = contexts.listIterator(); iterator.hasNext();)
                {
                    iterator.set(((Class)iterator.next()).getName());
                }
            }
            this.contextHierachyCache.put(
View Full Code Here

Examples of java.util.List.listIterator()

                            null);
                    final Set newContents = new LinkedHashSet();
                    locations.put(
                        location,
                        newContents);
                    for (final ListIterator contentsIterator = contents.listIterator(); contentsIterator.hasNext();)
                    {
                        final String path = (String)contentsIterator.next();
                        if (!path.endsWith(FORWARD_SLASH))
                        {
                            boolean hasNewPath = false;
View Full Code Here

Examples of java.util.List.listIterator()

                String[] patterns = this.patterns != null ? this.patterns.split(PATTERN_DELIMITER) : new String[0];
                final List paths = ResourceUtils.getDirectoryContents(
                        url,
                        true,
                        patterns);
                for (final ListIterator iterator = paths.listIterator(); iterator.hasNext();)
                {
                    final URL resource = ResourceUtils.toURL((String)iterator.next());
                    if (resource != null)
                    {
                        iterator.set(resource);
View Full Code Here

Examples of java.util.List.listIterator()

        throws Exception
    {
        if (projects.isEmpty())
        {
            final List poms = this.getPoms();
            for (ListIterator iterator = poms.listIterator(); iterator.hasNext();)
            {
                final File pom = (File)iterator.next();
                try
                {
                    // - first attempt to get the existing project from the session
View Full Code Here

Examples of java.util.List.listIterator()

    private Set collectProjects()
        throws MojoExecutionException
    {
        final Set projects = new LinkedHashSet();
        final List poms = this.getPoms();
        for (ListIterator iterator = poms.listIterator(); iterator.hasNext();)
        {
            final File pom = (File)iterator.next();
            final MavenProject project = this.getProject(pom);
            if (project != null)
            {
View Full Code Here

Examples of java.util.List.listIterator()

    {
        final List files = new ArrayList();
        this.loadFiles(
            directory,
            files);
        for (final ListIterator iterator = files.listIterator(); iterator.hasNext();)
        {
            final File file = (File)iterator.next();
            final String filePath = file.toString().replace(
                    '\\',
                    '/');
View Full Code Here

Examples of java.util.List.listIterator()

            allArtifacts.clear();
            allArtifacts.addAll(result.getArtifacts());
        }

        final List allArtifactPaths = new ArrayList(allArtifacts);
        for (final ListIterator iterator = allArtifactPaths.listIterator(); iterator.hasNext();)
        {
            final Artifact artifact = (Artifact)iterator.next();
            if (classpathArtifactTypes.contains(artifact.getType()))
            {
                final File artifactFile = artifact.getFile();
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.