Examples of entries()


Examples of com.pearson.entech.elasticsearch.search.facet.approx.date.internal.InternalDistinctFacet.entries()

        putSync(newID(), 1, __days[6]);
        assertEquals(4, countAll());
        final SearchResponse response = getHistogram(__days[0], __days[7], "day", __userField);
        assertEquals(4, response.getHits().getTotalHits());
        final InternalDistinctFacet facet = response.getFacets().facet(__facetName);
        final List<DistinctTimePeriod<NullEntry>> facetList = facet.entries();
        // Expecting just one hit and one distinct hit per doc, for the username.
        assertEquals(4, facetList.size());
        assertEquals(__days[0], facetList.get(0).getTime());
        assertEquals(1, facetList.get(0).getTotalCount());
        assertEquals(1, facetList.get(0).getDistinctCount());
View Full Code Here

Examples of com.sun.enterprise.deploy.shared.FileArchive.entries()

            // dedicated wsdl directory.
            FileArchive archive = new FileArchive();
            archive.open(sourceDir.toURI());


            Enumeration entries = archive.entries(bundle.getWsdlDir());


            while (entries.hasMoreElements()) {
                String name = (String) entries.nextElement();
                String wsdlName = stripWsdlDir(name, bundle);
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.AbstractArchive.entries()

            status.addProperty(key, clientPublishURL);

            // Collect the names of all entries in or below the
            // dedicated wsdl directory.
            BundleDescriptor bundle = webService.getBundleDescriptor();
            Enumeration entries = moduleArchive.entries(bundle.getWsdlDir());

            // Strictly speaking, we only need to write the files needed by
            // imports of this web service's wsdl file.  However, it's not
            // worth actual parsing the whole chain just to figure this
            // out.  In the worst case, some unnecessary files under
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.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 com.sun.enterprise.deployment.deploy.shared.FileArchive.entries()

        FileArchive source = new FileArchive();
        OutputJarArchive destination = new OutputJarArchive();
        try {
            source.open(sourcePath);
            destination.create(destinationPath);
            for (Enumeration entries = source.entries();
                 entries.hasMoreElements();) {
                String entry = String.class.cast(entries.nextElement());
                InputStream is = null;
                OutputStream os = null;
                try {
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.InputJarArchive.entries()

        final File movedGeneratedFile = File.createTempFile(generatedClientJARFile.getName(), ".tmp", generatedClientJARFile.getParentFile());
        FileUtils.renameFile(generatedClientJARFile, movedGeneratedFile);
        final ReadableArchive existingGeneratedJAR = new InputJarArchive();
        existingGeneratedJAR.open(movedGeneratedFile.toURI());
        try {
            for (Enumeration e = existingGeneratedJAR.entries(); e.hasMoreElements();) {
                final String entryName = (String) e.nextElement();
                final URI entryURI = new URI("jar", movedGeneratedFile.toURI().toASCIIString() + "!/" + entryName, null);
                final Artifacts.FullAndPartURIs uris = new Artifacts.FullAndPartURIs(entryURI, entryName);
                clientArtifactsManager.add(uris);
            }
View Full Code Here

Examples of com.sun.tools.classfile.ConstantPool.entries()

    protected void writeConstantPool() {
        ConstantPool pool = classFile.constant_pool;
        int size = pool.size();
        out.writeShort(size);
        for (CPInfo cpInfo: pool.entries())
            constantPoolWriter.write(cpInfo, out);
    }

    protected void writeFields() throws IOException {
        Field[] fields = classFile.fields;
View Full Code Here

Examples of com.volantis.devrep.device.api.xml.hierarchy.Hierarchy.entries()

    public RepositoryEnumeration enumerateDeviceNames(
            RepositoryConnection connection) throws RepositoryException {

        Hierarchy hierarchy = loadHierarchy();
        Iterator entries = hierarchy.entries();
        return new IteratorRepositoryEnumeration(entries) {
            public Object next() throws RepositoryException {
                HierarchyEntry entry = (HierarchyEntry) super.next();
                return entry.getDeviceName();
            }
View Full Code Here

Examples of com.volantis.devrep.device.api.xml.identification.Identification.entries()

            factory.createDeviceRepository("file://" + fileName, null);

        final Iterator entriesIter;
        if (deviceName == null) {
            // iterate throuogh the identification entries
            entriesIter = identification.entries();
        } else {
            // only check one entry
            final IdentificationEntry entry = identification.find(deviceName);
            entriesIter = Collections.singleton(entry).iterator();
        }
View Full Code Here

Examples of com.volantis.devrep.device.api.xml.policy.PolicySet.entries()

                "PolicyTest.xml");

        StringBuffer output = new StringBuffer();
        dumpPolicySet(policySet, output);

        Iterator i =policySet.entries();
          while (i.hasNext())
          {
             PolicyEntry test = (PolicyEntry)i.next();
             if ("testinherit".equals(test.getName())) {
                 assertNotNull(test.getInherit());
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.