Package org.exolab.castor.xml.schema

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


            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

                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

      }
    }

    if (group != null)
    {
      Enumeration<?> groupEnum = group.enumerate();

      while (groupEnum.hasMoreElements())
      {
        Structure item = (Structure)groupEnum.nextElement();
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.