diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-16 10:14:44 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-16 10:14:44 +0000 |
commit | 4e28c9663f0fbbcd558afdd034d420c52059f75f (patch) | |
tree | e61497a97e446ca2fc992c382567ab76cb93b74d /branches/sca-java-2.0-M3/modules/xsd/src/main/java | |
parent | 47237c62208745d98cef0de4b518ad01b58094ec (diff) |
Merge 785126 from 2.x trunk to M3 to fix Commented import resolving code from XSDModelResolver as its not applicable for in-line schemas
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@785143 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-2.0-M3/modules/xsd/src/main/java')
-rw-r--r-- | branches/sca-java-2.0-M3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/xml/XSDModelResolver.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/branches/sca-java-2.0-M3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/xml/XSDModelResolver.java b/branches/sca-java-2.0-M3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/xml/XSDModelResolver.java index 2f303a295c..d201ce5b80 100644 --- a/branches/sca-java-2.0-M3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/xml/XSDModelResolver.java +++ b/branches/sca-java-2.0-M3/modules/xsd/src/main/java/org/apache/tuscany/sca/xsd/xml/XSDModelResolver.java @@ -89,7 +89,8 @@ public class XSDModelResolver implements ModelResolver { String namespace = definition.getNamespace(); XSDefinition resolved = null; - // Lookup a definition for the given namespace, from imports + // FIXME - We should not be using import resolvers for inline schema. + /* // Lookup a definition for the given namespace, from imports List<String> locations = new ArrayList<String>(); // Collection of namespace imports with location Map<String, NamespaceImport> locationMap = new HashMap<String, NamespaceImport>(); @@ -110,7 +111,8 @@ public class XSDModelResolver implements ModelResolver { locations.add(namespaceImport.getLocation()); } } - } else if (import_ instanceof DefaultImport) { + } + else if (import_ instanceof DefaultImport) { // Delegate the resolution to the default import resolver resolved = @@ -130,9 +132,9 @@ public class XSDModelResolver implements ModelResolver { if (!resolved.isUnresolved()) { return modelClass.cast(resolved); } - } + } */ - // Not found, lookup a definition for the given namespace, within the contribution + // Lookup a definition for the given namespace, within the contribution List<XSDefinition> list = map.get(namespace); XSDefinition modelXSD = null; if (list != null && definition.getDocument() != null) { |