Examples of entries()


Examples of org.glassfish.api.deployment.archive.Archive.entries()

        Collection<String> allURIs = new ArrayList<String>(smallIconUris);
        allURIs.addAll(largeIconUris);
        for(String uri : allURIs){
            Archive moduleArchive = getVerifierContext().getModuleArchive();
            boolean passed = false;
            for(Enumeration entries = moduleArchive.entries(); entries.hasMoreElements();){
                if(uri.equals(entries.nextElement())) {
                    passed = true;
                    break;
                }
            }
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ReadableArchive.entries()

                    try {
                        ReadableArchive jarSubArchive = null;
                        try {
                            jarSubArchive = archive.getSubArchive(entryName);
                            Enumeration<String> jarEntries =
                                jarSubArchive.entries();
                            while (jarEntries.hasMoreElements()) {
                                String jarEntryName = jarEntries.nextElement();
                                if (jarEntryName.endsWith(".class")) {
                                    InputStream is =
                                        jarSubArchive.getEntry(jarEntryName);
View Full Code Here

Examples of org.jboss.portal.common.jar.JarInfo.entries()

      boolean enabled = true;

      //
      Stack stack = new Stack(jarURL, rootEntryInfo);
      for (Iterator i = jarInfo.entries(); i.hasNext();)
      {
         JarEntryInfo entryInfo = (JarEntryInfo)i.next();

         // Only consider descendant of the root or root itself
         if (entryInfo.equals(rootEntryInfo) || entryInfo.isDescendantOf(rootEntryInfo))
View Full Code Here

Examples of org.jnode.net.ipv4.IPv4RoutingTable.entries()

        } catch (NoSuchProtocolException ex) {
            throw new NetworkException("Cannot find IPv4 network layer", ex);
        }
        final IPv4RoutingTable rt = ipNL.getRoutingTable();

        for (IPv4Route route : rt.entries()) {
            if (!route.getDestination().equals(target)) {
                continue;
            }
            if (gateway != null) {
                if (!gateway.equals(route.getGateway())) {
View Full Code Here

Examples of org.jnode.util.JarBuffer.entries()

    }

    private Map<String, ByteBuffer> loadResources(ByteBuffer buffer) throws IOException {
        final BootableHashMap<String, ByteBuffer> map = new BootableHashMap<String, ByteBuffer>();
        final JarBuffer jbuf = new JarBuffer(buffer);
        for (Map.Entry<String, ByteBuffer> entry : jbuf.entries().entrySet()) {
            if (entry.getValue().limit() > 0) {
                map.put(entry.getKey(), entry.getValue());
            }
        }
        return map;
View Full Code Here

Examples of org.leskes.elasticfacets.HashedStringsFacet.entries()

         assertThat(searchResponse.hits().totalHits(), equalTo(documentCount));

         HashedStringsFacet facet = searchResponse.facets().facet("facet1");
         assertThat(facet.name(), equalTo("facet1"));
         assertThat(facet.entries().size(), equalTo(facet_size));
         assertThat(facet.entries().get(0).term(),isEmptyOrNullString());
         assertThat(facet.entries().get(0).getTermHash(),
                 equalTo(HashedStringFieldType.hashCode(getTerm(maxTermCount()))));
         assertThat(facet.entries().get(0).count(),equalTo(maxTermCount()));
         assertThat(facet.entries().get(1).term(), isEmptyOrNullString());
View Full Code Here

Examples of org.locationtech.udig.project.ui.feature.FeaturePanelProcessor.entries()

    protected List<FeaturePanelTabDescriptor> readTabDescriptors() {
        List<FeaturePanelTabDescriptor> result = new ArrayList<FeaturePanelTabDescriptor>();
        FeaturePanelProcessor featurePanelProcessor = ProjectUIPlugin.getDefault()
                .getFeaturePanelProcessor();

        List<FeaturePanelEntry> list = featurePanelProcessor.entries();
        if (list.isEmpty()) {
            return result; // empty!
        }
        for( FeaturePanelEntry entry : list ) {
            FeaturePanelTabDescriptor descriptor = new FeaturePanelTabDescriptor(entry);
View Full Code Here

Examples of org.netbeans.api.java.classpath.ClassPath.entries()

                /**
                 * we are not sure the initial order of gsf classpath and java classpath,
                 * we here just call scalaPlatform.getStandardLibraries() to initial SCALAC_CLASS_PATH
                 */
                ClassPath scalaStdCp = scalaPlatform.getStandardLibraries();
                for (Entry entry : scalaStdCp.entries()) {
                    resources.add(ClassPathSupport.createResource(entry.getURL()));
                }
            }

            if (type == 0) {
View Full Code Here

Examples of org.robotninjas.barge.log.GetEntriesResult.entries()

        .setTerm(log.currentTerm())
        .setLeaderId(log.self().toString())
        .setPrevLogIndex(result.lastLogIndex())
        .setPrevLogTerm(result.lastLogTerm())
        .setCommitIndex(log.commitIndex())
        .addAllEntries(result.entries())
        .build();

    LOGGER.debug("Sending update to {} prevLogIndex: {}, prevLogTerm: {}, nr. of entries {}", remote, result.lastLogIndex(),
      result.lastLogTerm(), result.entries().size());
View Full Code Here

Examples of org.sonar.batch.dependency.DependencyCache.entries()

      }
    }

    private void storeDependencies(ProjectScanContainer container) {
      DependencyCache dependencyCache = container.getComponentByType(DependencyCache.class);
      for (Entry<Dependency> entry : dependencyCache.entries()) {
        String fromKey = entry.key()[1].toString();
        String toKey = entry.key()[2].toString();
        if (!dependencies.containsKey(fromKey)) {
          dependencies.put(fromKey, new HashMap<String, Integer>());
        }
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.