Exemplo n.º 1
0
 private void addCrossImports(XmlSchema schema, XmlSchemaChoice choice) {
   for (XmlSchemaObjectBase seqMember : choice.getItems()) {
     if (seqMember instanceof XmlSchemaElement) {
       addElementCrossImportsElement(schema, (XmlSchemaElement) seqMember);
     }
   }
 }
Exemplo n.º 2
0
 private void addCrossImports(XmlSchema schema, XmlSchemaSequence sequence) {
   for (XmlSchemaSequenceMember seqMember : sequence.getItems()) {
     if (seqMember instanceof XmlSchemaElement) {
       addElementCrossImportsElement(schema, (XmlSchemaElement) seqMember);
     }
   }
 }
Exemplo n.º 3
0
 private void addOneSchemaCrossImports(XmlSchema schema) {
   /*
    * We need to visit all the top-level items.
    */
   for (XmlSchemaElement element : schema.getElements().values()) {
     addElementCrossImportsElement(schema, element);
   }
   for (XmlSchemaAttribute attribute : schema.getAttributes().values()) {
     XmlSchemaUtils.addImportIfNeeded(schema, attribute.getRef().getTargetQName());
     XmlSchemaUtils.addImportIfNeeded(schema, attribute.getSchemaTypeName());
   }
   for (XmlSchemaType type : schema.getSchemaTypes().values()) {
     addCrossImportsType(schema, type);
   }
 }