Examples of maxOccurs()


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

                    }
                    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.maxOccurs()

            if (typeInfo.getWrapperType() != null) typeInfo = param.getTypeInfo();
            else repeatedElement = true;
        }
        Occurs child = addChild(sq, param.getName(), typeInfo);
        if (repeatedElement && child != null) {
            child.maxOccurs("unbounded");
        }
    }
   
    protected Occurs addChild(ExplicitGroup sq, QName name, TypeInfo typeInfo) {
        LocalElement le = null;;
View Full Code Here

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

                if(t.getDefaultValue()!=null)
                    e._default(t.getDefaultValue());
            }

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

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

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

                TODO.schemaGenerator("generate @namespace ???");
                if( occurs == null ) occurs = any;
            }

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

        }

        /**
         * Generate the proper schema fragment for the given map property into the
View Full Code Here

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

        else
        {
          allowed.minOccurs = Integer.parseInt(minOccurs);
        }

        String maxOccurs = processorAttributes.maxOccurs();
        if (maxOccurs.equals("unbounded"))
        {
          allowed.maxOccurs = UNBOUNDED;
        }
        else
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.maxOccurs()

            this.classification = classification;

            SimpleFeatureTypeBuilder tb = new SimpleFeatureTypeBuilder();
            for (AttributeDescriptor att : zones.getSchema().getAttributeDescriptors()) {
                tb.minOccurs(att.getMinOccurs());
                tb.maxOccurs(att.getMaxOccurs());
                tb.restrictions(att.getType().getRestrictions());
                if (att instanceof GeometryDescriptor) {
                    GeometryDescriptor gatt = (GeometryDescriptor) att;
                    tb.crs(gatt.getCoordinateReferenceSystem());
                }
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.maxOccurs()

            this.data = data;

            SimpleFeatureTypeBuilder tb = new SimpleFeatureTypeBuilder();
            for (AttributeDescriptor att : zones.getSchema().getAttributeDescriptors()) {
                tb.minOccurs(att.getMinOccurs());
                tb.maxOccurs(att.getMaxOccurs());
                tb.restrictions(att.getType().getRestrictions());
                if (att instanceof GeometryDescriptor) {
                    GeometryDescriptor gatt = (GeometryDescriptor) att;
                    tb.crs(gatt.getCoordinateReferenceSystem());
                }
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.maxOccurs()

                    Class<?> binding = ad.getType().getBinding();
                    if(Point.class.isAssignableFrom(binding)) {
                        tb.add(ad);
                    } else {
                        tb.minOccurs(ad.getMinOccurs());
                        tb.maxOccurs(ad.getMaxOccurs());
                        tb.nillable(ad.isNillable());
                        tb.add(ad.getLocalName(), Point.class, gd.getCoordinateReferenceSystem());
                    }
                } else {
                    tb.add(ad);
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.maxOccurs()

                        } else {
                            throw new RuntimeException("Don't know how to handle geometries of type "
                                    + binding.getCanonicalName());
                        }
                        tb.minOccurs(ad.getMinOccurs());
                        tb.maxOccurs(ad.getMaxOccurs());
                        tb.nillable(ad.isNillable());
                        tb.add(ad.getLocalName(), target, gd.getCoordinateReferenceSystem());
                    }
                } else {
                    tb.add(ad);
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.maxOccurs()

            this.data = data;

            SimpleFeatureTypeBuilder tb = new SimpleFeatureTypeBuilder();
            for (AttributeDescriptor att : zones.getSchema().getAttributeDescriptors()) {
                tb.minOccurs(att.getMinOccurs());
                tb.maxOccurs(att.getMaxOccurs());
                tb.restrictions(att.getType().getRestrictions());
                if (att instanceof GeometryDescriptor) {
                    GeometryDescriptor gatt = (GeometryDescriptor) att;
                    tb.crs(gatt.getCoordinateReferenceSystem());
                }
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.