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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]