[jboss-dev-forums] [Design of JBossXB] - Re: SundayContentHandler: Don't add collections into collect

adrian@jboss.org do-not-reply at jboss.com
Tue Oct 10 10:32:55 EDT 2006


I found it while I was doing the new java annotation stuff.

I found it back on Sunday, so I'm not sure if I can remember the details?

But the XSD model was similar to the DescriptionGroup in javaee_5.xsd,
with a java model like - I only show description(s) and this is pseudo code


  | // Mapped to the group
  | public class DescriptionGroup
  | {
  |    Descritpions descritpions;
  | }
  | 
  | public class Descriptions implements Collection<Description>
  | {
  | }
  | 
  | public class Description
  | {
  |    String lang; // xml:lang attribute
  |    String value; // the description
  | }
  | 

It was trying to do:
Descriptions.add(ArrayList)

It completed ignored the fact that the parent/owner (Descriptions)
was already a collection.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977259#3977259

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977259



More information about the jboss-dev-forums mailing list