private void processChoice(String targetNamespace, String defaultNamespace, SDOType owningType, Choice choice, boolean isMany) { if (choice != null) { processTypeDef(targetNamespace, defaultNamespace, owningType, choice); java.util.List orderedItems = choice.getOrderedElements(); for (int i = 0; i < orderedItems.size(); i++) { Object next = orderedItems.get(i); if (!isMany && maxOccursGreaterThanOne(choice.getMaxOccurs())) { isMany = true; } if (next instanceof Choice) { processChoice(targetNamespace, defaultNamespace, owningType, (Choice) next, isMany); } else if (next instanceof Sequence) { processSequence(targetNamespace, defaultNamespace, owningType, (Sequence) next, isMany); } else if (next instanceof Any) { processAny(targetNamespace, defaultNamespace, (Any) next, owningType, choice);//isMany?? } else if (next instanceof Element) { processElement(targetNamespace, defaultNamespace, owningType, choice, (Element) next, false, isMany); } else if (next instanceof Group) { processGroup(targetNamespace, defaultNamespace, owningType, choice, (Group) next, isMany); } } } }
private void processChoice(String targetNamespace, String defaultNamespace, SDOType owningType, Choice choice, boolean isMany) { if (choice != null) { processTypeDef(targetNamespace, defaultNamespace, owningType, choice); java.util.List orderedItems = choice.getOrderedElements(); for (int i = 0; i < orderedItems.size(); i++) { Object next = orderedItems.get(i); if (!isMany && maxOccursGreaterThanOne(choice.getMaxOccurs())) { isMany = true; } if (next instanceof Choice) { processChoice(targetNamespace, defaultNamespace, owningType, (Choice) next, isMany); } else if (next instanceof Sequence) { processSequence(targetNamespace, defaultNamespace, owningType, (Sequence) next, isMany); } else if (next instanceof Any) { processAny(targetNamespace, defaultNamespace, (Any) next, owningType, choice);//isMany?? } else if (next instanceof Element) { processElement(targetNamespace, defaultNamespace, owningType, choice, (Element) next, false, isMany); } else if (next instanceof Group) { processGroup(targetNamespace, defaultNamespace, owningType, choice, (Group) next, isMany); } } } }