private void parseSchemas(Definition def) throws Exception { if (def.getTypes() != null && def.getTypes().getExtensibilityElements() != null) { for (Iterator iter = def.getTypes().getExtensibilityElements().iterator(); iter.hasNext();) { ExtensibilityElement element = (ExtensibilityElement) iter.next(); if (element instanceof javax.wsdl.extensions.schema.Schema) { javax.wsdl.extensions.schema.Schema schema = (javax.wsdl.extensions.schema.Schema) element; if (schema.getElement() != null) { schemas.read(schema.getElement(), getUri(schema.getDocumentBaseURI())); } for (Iterator itImp = schema.getImports().values().iterator(); itImp.hasNext();) { Collection imps = (Collection) itImp.next(); for (Iterator itSi = imps.iterator(); itSi.hasNext();) { SchemaImport imp = (SchemaImport) itSi.next(); schemas.read(imp.getSchemaLocationURI(), getUri(def.getDocumentBaseURI())); } } } } } if (def.getImports() != null) { for (Iterator itImp = def.getImports().values().iterator(); itImp.hasNext();) { Collection imps = (Collection) itImp.next(); for (Iterator iter = imps.iterator(); iter.hasNext();) { Import imp = (Import) iter.next(); parseSchemas(imp.getDefinition()); } } } }
private void parseSchemas(Definition def) throws Exception { if (def.getTypes() != null && def.getTypes().getExtensibilityElements() != null) { for (Iterator iter = def.getTypes().getExtensibilityElements().iterator(); iter.hasNext();) { ExtensibilityElement element = (ExtensibilityElement) iter.next(); if (element instanceof javax.wsdl.extensions.schema.Schema) { javax.wsdl.extensions.schema.Schema schema = (javax.wsdl.extensions.schema.Schema) element; if (schema.getElement() != null) { _schemas.read(schema.getElement(), getUri(schema.getDocumentBaseURI())); } for (Iterator itImp = schema.getImports().values().iterator(); itImp.hasNext();) { Collection imps = (Collection) itImp.next(); for (Iterator itSi = imps.iterator(); itSi.hasNext();) { SchemaImport imp = (SchemaImport) itSi.next(); _schemas.read(imp.getSchemaLocationURI(), getUri(def.getDocumentBaseURI())); } } } } } if (def.getImports() != null) { for (Iterator itImp = def.getImports().values().iterator(); itImp.hasNext();) { Collection imps = (Collection) itImp.next(); for (Iterator iter = imps.iterator(); iter.hasNext();) { Import imp = (Import) iter.next(); parseSchemas(imp.getDefinition()); } } } }
String key = schemaImport.getSchemaLocationURI(); if (importNamespace == null && tempImport != null) { importNamespace = tempImport.getDocumentBaseURI();
String key = schemaImport.getSchemaLocationURI(); if (importNamespace == null && tempImport != null) { importNamespace = tempImport.getDocumentBaseURI();
String key = schemaImport.getSchemaLocationURI(); if (importNamespace == null && tempImport != null) { importNamespace = tempImport.getDocumentBaseURI();
private void mapSchema(Schema schema, String contextPath) { Map schemaImports = schema.getImports(); for (Iterator iter = schemaImports.values().iterator(); iter.hasNext();) { List imps = (List) iter.next(); for (Iterator iterator = imps.iterator(); iterator.hasNext();) { SchemaImport schemaImport = (SchemaImport) iterator.next(); Schema schemaImp = schemaImport.getReferencedSchema(); String schemaLoc = schemaImport.getSchemaLocationURI(); if (schemaLoc != null && schemaImp != null && schemaImp.getElement() != null && !URI.create(schemaLoc).isAbsolute()) { schemaLoc = resolveRelativeURI(contextPath, schemaLoc); addResource(schemaLoc, schemaImp.getElement()); // recursively map imported schemas mapSchema(schemaImp, getURIParent(schemaLoc)); } } } List schemaIncludes = schema.getIncludes(); for (Iterator iter = schemaIncludes.iterator(); iter.hasNext();) { SchemaReference schemaInclude = (SchemaReference) iter.next(); Schema schemaImp = schemaInclude.getReferencedSchema(); String schemaLoc = schemaInclude.getSchemaLocationURI(); if (schemaLoc != null && schemaImp != null && schemaImp.getElement() != null && !URI.create(schemaLoc).isAbsolute()) { schemaLoc = resolveRelativeURI(contextPath, schemaLoc); addResource(schemaLoc, schemaImp.getElement()); // recursively map included schemas mapSchema(schemaImp, getURIParent(schemaLoc)); } } }
String key = schemaImport.getSchemaLocationURI(); if (importNamespace == null && tempImport != null) { importNamespace = tempImport.getDocumentBaseURI();
continue; String fileNameChild = normalizeName(imp.getSchemaLocationURI()); changedSchemaLocations.put(imp.getSchemaLocationURI(), fileNameChild); processSchema(definition, importedSchema, fileNameChild, changedSchemaLocations);
String key = schemaImport.getSchemaLocationURI(); if (importNamespace == null && tempImport != null) { importNamespace = tempImport.getDocumentBaseURI();
String key = schemaImport.getSchemaLocationURI(); if (importNamespace == null && tempImport != null) { importNamespace = tempImport.getDocumentBaseURI();
List<SchemaImport> impLst = CastUtils.cast(lst); for (SchemaImport imp : impLst) { String start = imp.getSchemaLocationURI();