[jboss-dev-forums] [Design of JBossXB] - Re: XmlElementWrapper tests

adrian@jboss.org do-not-reply at jboss.com
Thu Mar 6 09:11:13 EST 2008


The testcase is CollectionWithValues.
(remove the modification then you'll see it fail)

Its not a javabean its a real collection
and it doesn't have "items" it has an add() operation. :-)


  | @XmlType()
  | @JBossXmlNoElements
  | @JBossXmlChildren
  | ({
  |    @JBossXmlChild(name="array", type=AbstractArrayMetaData.class),
  |    @JBossXmlChild(name="collection", type=AbstractCollectionMetaData.class),
  |    @JBossXmlChild(name="inject", type=AbstractDependencyValueMetaData.class),
  |    @JBossXmlChild(name="list", type=AbstractListMetaData.class),
  |    @JBossXmlChild(name="map", type=AbstractMapMetaData.class),
  |    @JBossXmlChild(name="null", type=AbstractValueMetaData.class),
  |    @JBossXmlChild(name="set", type=AbstractSetMetaData.class),
  |    @JBossXmlChild(name="this", type=ThisValueMetaData.class),
  |    @JBossXmlChild(name="value", type=StringValueMetaData.class)
  | })
  | @JBossXmlChildWildcard(wrapper=AbstractValueMetaData.class, property="value")
  | public class AbstractCollectionMetaData extends AbstractTypeMetaData
  |    implements Collection<MetaDataVisitorNode>, Serializable
  | 

If you think it is confusing then we could condition it on @JBossXMLNoElements
or something that identifies it for this usecase?

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

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



More information about the jboss-dev-forums mailing list