I found the problem When the schema was re-factored, the complex type for MarshCertificateInfo defined both a reference to a subordinate element, FileAttachmentInfo, and a reference to a group which contained the same element. When the duplicate reference was removed, all was right with the world again.
Cheers,
Ed
----- Original Message -----
From: "Ed Trembicki-Guy"
Date: Thu, 05 Aug 2004 15:29:26 -0500
To: users@jaxb.dev.java.net
Subject: getContent() instead of getters and setters?
I just regenerated my jaxb objects, based on a schema change, and got some unexpected results. Three nodes off the root node were subordinated under another first-level node, named MarshCertificateInfo. The class for MarshCertificateInfo used to have several get and set operations for its subordinate nodes. After the schema change and regeneration, that class only has one operation, getContent, which returns a list of heterogeneous objects. Now, rather than invoking specific get (for List objects) or set operations, I have to iterate through the List returned by getContent() and test each element with instanceof.
Does anyone know why this has happened? I have included the schema files (the ones with the 01 suffix are the originals before the change) for reference.
Regards,
Ed
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://www.mail.com/?sr=signup
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://www.mail.com/?sr=signup