Examples of enumerate()


Examples of com.codecademy.eventhub.model.User.enumerate()

      return id;
    }
    id = super.ensureUser(externalUserId);
    final BloomFilter bloomFilter = bloomFilterProvider.get();
    User user = new User.Builder(externalUserId, Maps.<String, String>newHashMap()).build();
    user.enumerate(new KeyValueCallback() {
      @Override
      public void callback(String key, String value) {
        bloomFilter.add(getBloomFilterKey(key, value));
      }
    });
View Full Code Here

Examples of com.google.code.jchmweb.jchmweb2.ChmFile.enumerate()

    void main(String pathToCHMFile, String pathToTmpDir) throws IOException {
        ChmFile chmFile = null;
        long time = System.currentTimeMillis(), time_prev = time;
        chmFile = new ChmFile(pathToCHMFile);      

        chmFile.enumerate(ChmFile.CHM_ENUMERATE_ALL,
                new Extractor(chmFile, pathToTmpDir));
        time = System.currentTimeMillis();
        Vars.logger.info("    finished in " + (time - time_prev) + " ms");
    }
}
View Full Code Here

Examples of com.icl.saxon.expr.NodeSetValue.enumerate()

            {
                return null;
            }

            NodeSetValue nodeset = (NodeSetValue)value;
            NodeEnumeration enumeration = nodeset.enumerate();
            Node[] nodes = new Node[nodeset.getCount()];
            for (int i = 0; i < nodes.length; i++)
            {
                nodes[i] = (Node)enumeration.nextElement();
            }
View Full Code Here

Examples of com.icl.saxon.expr.NodeSetValue.enumerate()

            {
                return null;
            }

            NodeSetValue nodeset = (NodeSetValue)value;
            NodeEnumeration enumeration = nodeset.enumerate();
            Node[] nodes = new Node[nodeset.getCount()];
            for (int i = 0; i < nodes.length; i++)
            {
                nodes[i] = (Node)enumeration.nextElement();
            }
View Full Code Here

Examples of org.exolab.castor.xml.schema.ContentModelGroup.enumerate()

        //------------------------------/
        //- handle elements and groups -/
        //------------------------------/

        ContentModelGroup contentModel = model;
        Enumeration<Annotated> enumeration = contentModel.enumerate();

        //-- handle choice item
        if (new XMLInfoNature(state.getClassInfo()).isChoice()
                && state.getFieldInfoForChoice() == null) {
            state.setFieldInfoForChoice(_memberFactory.createFieldInfoForChoiceValue());
View Full Code Here

Examples of org.exolab.castor.xml.schema.ContentModelGroup.enumerate()

                            int count = 0;
                            int index = 0;
                            Structure structure = element.getParent();
                            if (structure instanceof ContentModelGroup) {
                                ContentModelGroup cmg = (ContentModelGroup) structure;
                                Enumeration<Structure> enumeration = cmg.enumerate();
                                while (enumeration.hasMoreElements()) {
                                    Structure tmpStruct = enumeration.nextElement();
                                    if (tmpStruct.getStructureType() == Structure.ELEMENT) {
                                        ElementDecl tmpDecl = (ElementDecl) tmpStruct;
                                        if (tmpDecl.isReference()
View Full Code Here

Examples of org.exolab.castor.xml.schema.ContentModelGroup.enumerate()

                            int count = 0;
                            int index = 0;
                            Structure structure = element.getParent();
                            if (structure instanceof ContentModelGroup) {
                                ContentModelGroup cmg = (ContentModelGroup)structure;
                                Enumeration enumeration = cmg.enumerate();
                                while (enumeration.hasMoreElements()) {
                                    Structure tmpStruct = (Structure)enumeration.nextElement();
                                    if (tmpStruct.getStructureType() == Structure.ELEMENT) {
                                        ElementDecl tmpDecl = (ElementDecl)tmpStruct;
                                        if (tmpDecl.isReference()) {
View Full Code Here

Examples of org.exolab.castor.xml.schema.Group.enumerate()

                }
                int minOccurs = group.getMinOccurs();
                //-- if minOccurs == 1, then check to see if all elements inside group are
                //-- optional, if so, we return 0, not 1.
                if (minOccurs == 1) {
                    Enumeration<Annotated> enumeration = group.enumerate();
                    while (enumeration.hasMoreElements()) {
                        if (getLowerBound(enumeration.nextElement()) != 0) {
                            return 1;
                        }
                    }
View Full Code Here

Examples of org.exolab.castor.xml.schema.Group.enumerate()

            e2Group.setOrder(_defaultGroupOrder);
            cType2.addGroup(e2Group);
           
        }
       
        Enumeration enumeration = e2Group.enumerate();
        while (enumeration.hasMoreElements()) {
            Particle particle = (Particle)enumeration.nextElement();
            if (particle.getStructureType() == Structure.ELEMENT) {
                ElementDecl element = (ElementDecl)particle;
                ElementDecl main = e1Group.getElementDecl(element.getName());
View Full Code Here

Examples of org.exolab.castor.xml.schema.Group.enumerate()

                int minOccurs = group.getMinOccurs();               
                //-- if minOccurs == 1, then check to see
                //-- if all elements inside group are
                //-- optional, if so, we return 0, not 1.
                if (minOccurs == 1) {
                    Enumeration enumeration = group.enumerate();                   
                    while (enumeration.hasMoreElements()) {
                        if (getLowerBound((Annotated)enumeration.nextElement()) != 0)
                            return 1;
                    }
                    //-- if we make it here, all items in group have a
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.