/** * Convenience method for processing a choice property. Required * schema components will be generated and set accordingly. * * @param property the choice property to be processed * @param typeInfo the TypeInfo that the given property belongs to * @param type the ComplexType which compositor(s) should be added to * @param compositor the sequence/choice/all to modify * @param schema the schema being built */ private void addChoiceToSchema(Property property, TypeInfo typeInfo, ComplexType type, TypeDefParticle compositor, Schema schema) { Choice choice = new Choice(); if (property.getGenericType() != null) { choice.setMaxOccurs(Occurs.UNBOUNDED); } ArrayList<Property> choiceProperties = (ArrayList<Property>) property.getChoiceProperties(); addToSchemaType(typeInfo, choiceProperties, choice, type, schema); if (compositor instanceof Sequence) { ((Sequence) compositor).addChoice(choice); } else if (compositor instanceof Choice) { ((Choice) compositor).addChoice(choice); } }
/** * Convenience method for processing a choice property. Required * schema components will be generated and set accordingly. * * @param property the choice property to be processed * @param typeInfo the TypeInfo that the given property belongs to * @param type the ComplexType which compositor(s) should be added to * @param compositor the sequence/choice/all to modify * @param schema the schema being built */ private void addChoiceToSchema(Property property, TypeInfo typeInfo, ComplexType type, TypeDefParticle compositor, Schema schema) { Choice choice = new Choice(); if (property.getGenericType() != null) { choice.setMaxOccurs(Occurs.UNBOUNDED); } ArrayList<Property> choiceProperties = (ArrayList<Property>) property.getChoiceProperties(); addToSchemaType(typeInfo, choiceProperties, choice, type, schema); if (compositor instanceof Sequence) { ((Sequence) compositor).addChoice(choice); } else if (compositor instanceof Choice) { ((Choice) compositor).addChoice(choice); } }
if (globalGroup != null) { if (globalGroup.getChoice() != null) { globalGroup.getChoice().setMaxOccurs(group.getMaxOccurs()); processChoice(targetNamespace, defaultNamespace, owningType, globalGroup.getChoice(), isMany); } else if (globalGroup.getSequence() != null) {
if (globalGroup != null) { if (globalGroup.getChoice() != null) { globalGroup.getChoice().setMaxOccurs(group.getMaxOccurs()); processChoice(targetNamespace, defaultNamespace, owningType, globalGroup.getChoice(), isMany); } else if (globalGroup.getSequence() != null) {
Choice theChoice = new Choice(); if (isCollection) { theChoice.setMaxOccurs(Occurs.UNBOUNDED);
Choice theChoice = new Choice(); if (isCollection) { theChoice.setMaxOccurs(Occurs.UNBOUNDED);
Choice theChoice = new Choice(); if (isCollection) { theChoice.setMaxOccurs(Occurs.UNBOUNDED);
choice.setMaxOccurs(Occurs.UNBOUNDED);
choice.setMaxOccurs(Occurs.UNBOUNDED);