You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by jo...@apache.org on 2005/11/25 21:16:11 UTC
svn commit: r349013 - in /webservices/jaxme/branches/b0_5/src:
jaxme/org/apache/ws/jaxme/generator/sg/impl/ArrayPropertySG.java
test/jaxb/types.xsd
Author: jochen
Date: Fri Nov 25 12:15:52 2005
New Revision: 349013
URL: http://svn.apache.org/viewcvs?rev=349013&view=rev
Log:
Fixed the handling of complex types in the "indexed" collection type.
Modified:
webservices/jaxme/branches/b0_5/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/ArrayPropertySG.java
webservices/jaxme/branches/b0_5/src/test/jaxb/types.xsd
Modified: webservices/jaxme/branches/b0_5/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/ArrayPropertySG.java
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/b0_5/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/ArrayPropertySG.java?rev=349013&r1=349012&r2=349013&view=diff
==============================================================================
--- webservices/jaxme/branches/b0_5/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/ArrayPropertySG.java (original)
+++ webservices/jaxme/branches/b0_5/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/ArrayPropertySG.java Fri Nov 25 12:15:52 2005
@@ -181,6 +181,11 @@
}
public void addValue(PropertySG pController, JavaMethod pMethod, DirectAccessible pElement, TypedValue pValue, JavaQName pType) throws SAXException {
+ if (getObjectSG().getTypeSG().isComplex()) {
+ LocalJavaField g = pMethod.newJavaField(getInstanceClass());
+ g.addLine("(", getInstanceClass(), ") ", pValue);
+ pValue = g;
+ }
JavaQName arrayClass = getArrayClass();
LocalJavaField f = pMethod.newJavaField(arrayClass);
f.addLine(pController.getValue(pElement));
Modified: webservices/jaxme/branches/b0_5/src/test/jaxb/types.xsd
URL: http://svn.apache.org/viewcvs/webservices/jaxme/branches/b0_5/src/test/jaxb/types.xsd?rev=349013&r1=349012&r2=349013&view=diff
==============================================================================
Binary files - no diff available.
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org