cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r589808 - /incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
Date Mon, 29 Oct 2007 19:26:56 GMT
Author: bimargulies
Date: Mon Oct 29 12:26:42 2007
New Revision: 589808

URL: http://svn.apache.org/viewvc?rev=589808&view=rev
Log:
Set the schema type on elements in some cases where it is possible and useful to the javascript
generator.

Modified:
    incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java

Modified: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?rev=589808&r1=589807&r2=589808&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
(original)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
Mon Oct 29 12:26:42 2007
@@ -694,6 +694,7 @@
         XmlSchemaComplexType ct = new XmlSchemaComplexType(schema);
         ct.setName(wrapperName.getLocalPart());
         el.setSchemaTypeName(wrapperName);
+        el.setSchemaType(ct);
         schema.addType(ct);
         schema.getItems().add(ct);
 
@@ -708,6 +709,7 @@
                 el.setRefName(mpi.getElementQName());
             } else {
                 el.setSchemaTypeName(mpi.getTypeQName());
+                el.setSchemaType((XmlSchemaType)mpi.getXmlSchema());
                 if (schema.getElementFormDefault().getValue().equals(XmlSchemaForm.UNQUALIFIED))
{
                     mpi.setConcreteName(new QName(null, mpi.getName().getLocalPart()));
                 }



Mime
View raw message