Examples of minOccurs()


Examples of com.sun.xml.bind.v2.schemagen.xmlschema.LocalElement.minOccurs()

        private void writeArray(ArrayInfo<T, C> a, Schema schema) {
            ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
            ct._final("#all");
            LocalElement le = ct.sequence().element().name("item");
            le.type(a.getItemType().getTypeName());
            le.minOccurs(0).maxOccurs("unbounded");
            le.nillable(true);
            ct.commit();
        }

        /**
 
View Full Code Here

Examples of com.sun.xml.bind.v2.schemagen.xmlschema.LocalElement.minOccurs()

            };
        }

        private void writeKeyOrValue(ExplicitGroup seq, String tagName, NonElement<T, C> typeRef) {
            LocalElement key = seq.element().name(tagName);
            key.minOccurs(0);
            writeTypeRef(key, typeRef, "type");
        }

        public void addGlobalAttribute(AttributePropertyInfo<T,C> ap) {
            attributeDecls.put( ap.getXmlName().getLocalPart(), ap );
View Full Code Here

Examples of com.sun.xml.bind.v2.schemagen.xmlschema.LocalElement.minOccurs()

        private void writeArray(ArrayInfo<T, C> a, Schema schema) {
            ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
            ct._final("#all");
            LocalElement le = ct.sequence().element().name("item");
            le.type(a.getItemType().getTypeName());
            le.minOccurs(0).maxOccurs("unbounded");
            le.nillable(true);
            ct.commit();
        }

        /**
 
View Full Code Here

Examples of com.sun.xml.bind.v2.schemagen.xmlschema.LocalElement.minOccurs()

                        repeatedElement = true;
                    }
                    QName type = model.getBindingContext().getTypeName(typeInfo);
                    le.type(type);
                    if (repeatedElement) {
                        le.minOccurs(0);
                        le.maxOccurs("unbounded");
                    }                   
                }
            }
        }
View Full Code Here

Examples of com.sun.xml.bind.v2.schemagen.xmlschema.Occurs.minOccurs()

            if (ep.isCollection())
                occurs.maxOccurs("unbounded");

            if (!ep.isRequired())
                // see Spec table 8-13
                occurs.minOccurs(0);
            // else minOccurs defaults to 1
        }

        /**
         * Checks if we can collapse
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.schemagen.xmlschema.LocalElement.minOccurs()

        private void writeArray(ArrayInfo<T, C> a, Schema schema) {
            ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
            ct._final("#all");
            LocalElement le = ct.sequence().element().name("item");
            le.type(a.getItemType().getTypeName());
            le.minOccurs(0).maxOccurs("unbounded");
            le.nillable(true);
            ct.commit();
        }

        /**
 
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.schemagen.xmlschema.LocalElement.minOccurs()

            };
        }

        private void writeKeyOrValue(ExplicitGroup seq, String tagName, NonElement<T, C> typeRef) {
            LocalElement key = seq.element().name(tagName);
            key.minOccurs(0);
            writeTypeRef(key, typeRef, "type");
        }

        public void addGlobalAttribute(AttributePropertyInfo<T,C> ap) {
            attributeDecls.put( ap.getXmlName().getLocalPart(), ap );
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.schemagen.xmlschema.LocalElement.minOccurs()

        private void writeArray(ArrayInfo<T, C> a, Schema schema) {
            ComplexType ct = schema.complexType().name(a.getTypeName().getLocalPart());
            ct._final("#all");
            LocalElement le = ct.sequence().element().name("item");
            le.type(a.getItemType().getTypeName());
            le.minOccurs(0).maxOccurs("unbounded");
            le.nillable(true);
            ct.commit();
        }

        /**
 
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.schemagen.xmlschema.LocalElement.minOccurs()

            };
        }

        private void writeKeyOrValue(ExplicitGroup seq, String tagName, NonElement<T, C> typeRef) {
            LocalElement key = seq.element().name(tagName);
            key.minOccurs(0);
            writeTypeRef(key, typeRef, "type");
        }

        public void addGlobalAttribute(AttributePropertyInfo<T,C> ap) {
            attributeDecls.put( ap.getXmlName().getLocalPart(), ap );
View Full Code Here

Examples of org.cruxframework.crux.core.rebind.screen.widget.declarative.TagConstraints.minOccurs()

      Class<?> childProcessorType = child.value();
      TagConstraints processorAttributes = factoryHelper.getChildtrenAttributesAnnotation(childProcessorType);

      if (processorAttributes != null)
      {
        String minOccurs = processorAttributes.minOccurs();
        if (minOccurs.equals("unbounded"))
        {
          allowed.minOccurs = UNBOUNDED;
        }
        else
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.