@Nonnull private XmlSchemaType createAny() { final XmlSchemaComplexType value = new XmlSchemaComplexType(schema, false); final XmlSchemaChoice xmlSchemaSequence = new XmlSchemaChoice(); value.setParticle(xmlSchemaSequence); final List<XmlSchemaChoiceMember> items = xmlSchemaSequence.getItems(); final XmlSchemaAny schemaAny = new XmlSchemaAny(); schemaAny.setMinOccurs(0); schemaAny.setMaxOccurs(UNBOUNDED); schemaAny.setProcessContent(XmlSchemaContentProcessing.SKIP); items.add(schemaAny); return value; } }
private XmlSchemaChoice handleChoice(XmlSchema schema, Element choiceEl, Element schemaEl) { XmlSchemaChoice choice = new XmlSchemaChoice();
@Nonnull private XmlSchemaType createAny() { final XmlSchemaComplexType value = new XmlSchemaComplexType(schema, false); final XmlSchemaChoice xmlSchemaSequence = new XmlSchemaChoice(); value.setParticle(xmlSchemaSequence); final List<XmlSchemaChoiceMember> items = xmlSchemaSequence.getItems(); final XmlSchemaAny schemaAny = new XmlSchemaAny(); schemaAny.setMinOccurs(0); schemaAny.setMaxOccurs(UNBOUNDED); schemaAny.setProcessContent(XmlSchemaContentProcessing.SKIP); items.add(schemaAny); return value; } }
private XmlSchemaChoice handleChoice(XmlSchema schema, Element choiceEl, Element schemaEl) { XmlSchemaChoice choice = new XmlSchemaChoice();
private XmlSchemaChoice handleChoice(XmlSchema schema, Element choiceEl, Element schemaEl) { XmlSchemaChoice choice = new XmlSchemaChoice();
Scope fullyQualifiedName = visitor.getFullyQualifiedName(); XmlSchemaChoice choice = new XmlSchemaChoice(); choice.setMinOccurs(1); choice.setMaxOccurs(1);