Jiji,
No setter is generated if the element can occur more than once (maxoccurs >
1), in this case getElement() returns a java.util.List, so you can use
getElement().add() to add another or getElement().get(n) to get the n'th
one.
As for your 2nd question, dunno :-(
Stewart
-----Original Message-----
From: Hanasaki JiJi [mailto:hanasaki_at_hanaden.com]
Sent: 12 February 2003 03:34
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: no setters generated
llo All,
What is it in the xmlschemata that causes setters to be generated? I
have a complex type with a sequence that contains another complex type.
A getter is generated but not a setter.
If a complex type is used several times in several areas of the same
schema, can it exist at the top level? The goal is to avoid embedding
the type in multiple locations.
********************************************************************************************
" This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only for
the person to whom it is addressed. If you are not the intended recipient, you
are not authorized to read, print, retain, copy, disseminate, distribute, or use
this message or any part thereof. If you receive this message in error, please
notify the sender immediately and delete all copies of this message ".
********************************************************************************************