cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject git commit: Minor update to allow CXF to compile and work with both XmlSchema 2.1 and 2.2-snap
Date Wed, 17 Sep 2014 17:08:11 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 1fa008dd1 -> fa79535d5


Minor update to allow CXF to compile and work with both XmlSchema 2.1 and 2.2-snap


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/fa79535d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/fa79535d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/fa79535d

Branch: refs/heads/master
Commit: fa79535d562f30d5ad2b0d7eea65bf08242baef4
Parents: 1fa008d
Author: Daniel Kulp <dkulp@apache.org>
Authored: Wed Sep 17 13:07:19 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Sep 17 13:07:19 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/cxf/common/xmlschema/SchemaCollection.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/fa79535d/core/src/main/java/org/apache/cxf/common/xmlschema/SchemaCollection.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/common/xmlschema/SchemaCollection.java b/core/src/main/java/org/apache/cxf/common/xmlschema/SchemaCollection.java
index 0932913..a9b6a1c 100644
--- a/core/src/main/java/org/apache/cxf/common/xmlschema/SchemaCollection.java
+++ b/core/src/main/java/org/apache/cxf/common/xmlschema/SchemaCollection.java
@@ -43,7 +43,6 @@ import org.apache.ws.commons.schema.XmlSchemaComplexType;
 import org.apache.ws.commons.schema.XmlSchemaContent;
 import org.apache.ws.commons.schema.XmlSchemaContentModel;
 import org.apache.ws.commons.schema.XmlSchemaElement;
-import org.apache.ws.commons.schema.XmlSchemaObject;
 import org.apache.ws.commons.schema.XmlSchemaParticle;
 import org.apache.ws.commons.schema.XmlSchemaSequence;
 import org.apache.ws.commons.schema.XmlSchemaSequenceMember;
@@ -54,6 +53,7 @@ import org.apache.ws.commons.schema.extensions.ExtensionRegistry;
 import org.apache.ws.commons.schema.resolver.URIResolver;
 import org.apache.ws.commons.schema.utils.NamespaceMap;
 import org.apache.ws.commons.schema.utils.NamespacePrefixList;
+import org.apache.ws.commons.schema.utils.XmlSchemaObjectBase;
 
 /**
  * Wrapper class for XmlSchemaCollection that deals with various quirks and bugs.
@@ -312,7 +312,7 @@ public class SchemaCollection {
         }
     }
     private void addCrossImports(XmlSchema schema, XmlSchemaAll all) {
-        for (XmlSchemaObject seqMember : all.getItems()) {
+        for (XmlSchemaObjectBase seqMember : all.getItems()) {
             if (seqMember instanceof XmlSchemaElement) {
                 addElementCrossImportsElement(schema, (XmlSchemaElement)seqMember);
             }
@@ -320,7 +320,7 @@ public class SchemaCollection {
     }
 
     private void addCrossImports(XmlSchema schema, XmlSchemaChoice choice) {
-        for (XmlSchemaObject seqMember : choice.getItems()) {
+        for (XmlSchemaObjectBase seqMember : choice.getItems()) {
             if (seqMember instanceof XmlSchemaElement) {
                 addElementCrossImportsElement(schema, (XmlSchemaElement)seqMember);
             }


Mime
View raw message