ComplexTypes, Unbounded, Arraylist [message #146770] |
Wed, 09 November 2005 12:51 |
Eclipse User |
|
|
|
Originally posted by: co8lo.hotmail.com
Hi:
I found that the terms enwrapped with the
These complexTypes are serialized into the javatypes,
They are basically the same. I can not see any logic in the
created javacode. I am not sure whether I am wrong?
For example:
<xsd:complexType name="example">
<xsd:sequence>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="a" type="x:aa" />
<xsd:element name="b" type="x:bb" />
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
the above the maxOccurs seems have no effect at all.
<xsd:complexType name="example">
<xsd:sequence>
<xsd:all maxOccurs="unbounded">
<xsd:element name="a" type="x:aa" />
<xsd:element name="b" type="x:bb" />
</xsd:all>
</xsd:sequence>
</xsd:complexType>
The created javatypes are basically the same. Also ,
I think that the <choice maxOccurs="unbounded">
There are should be one Arrary to reprensent it, but I can not
Find any arrary in the Java files. (using topdown wizard with WTP eclipse)
any Sugestions? I am wondering whether I have to implement the "choice",
"all" myself?
thank u very much
Lopezz
|
|
|
Powered by
FUDForum. Page generated in 0.06260 seconds