public void setNestedParticles(java.util.List nestedParticles) { for (int i = 0; i < nestedParticles.size(); i++) { NestedParticle next = (NestedParticle)nestedParticles.get(i); if (next instanceof Choice) { addChoice((Choice)next); } else if (next instanceof Sequence) { addSequence((Sequence)next); } } }
public void setNestedParticles(java.util.List nestedParticles) { for (int i = 0; i < nestedParticles.size(); i++) { NestedParticle next = (NestedParticle)nestedParticles.get(i); if (next instanceof Choice) { addChoice((Choice)next); } else if (next instanceof Sequence) { addSequence((Sequence)next); } } }
public void setNestedParticles(java.util.List nestedParticles) { for (int i = 0; i < nestedParticles.size(); i++) { NestedParticle next = (NestedParticle)nestedParticles.get(i); if (next instanceof Choice) { addChoice((Choice)next); } else if (next instanceof Sequence) { addSequence((Sequence)next); } } }
/** * 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); } }
seq.addChoice(theChoice);
((Sequence) compositor).addChoice(choice); } else if (compositor instanceof Choice) { ((Choice) compositor).addChoice(choice);
((Sequence) compositor).addChoice(choice); } else if (compositor instanceof Choice) { ((Choice) compositor).addChoice(choice);