This content has been marked as final.
Show 7 replies
-
1. Re: XmlElementWrapper tests
adrian.brock Mar 5, 2008 11:41 AM (in response to aloubyansky)Scott wrote these tests.
I guess he put the bounds on the wrong part of the model? ;-)SequenceBinding seq = new SequenceBinding(schemaBinding); ... particle = new ParticleBinding(wrapperElement, 1, 1, false);
-
2. Re: XmlElementWrapper tests
adrian.brock Mar 5, 2008 12:27 PM (in response to aloubyansky)I just found the opposite issue :-)
http://jira.jboss.com/jira/browse/JBXB-127 -
3. Re: XmlElementWrapper tests
starksm64 Mar 5, 2008 12:39 PM (in response to aloubyansky)No, what is what I wanted, at least in terms of the xml as this models the application/module/x structure of an ear application.xml descriptor.
-
4. Re: XmlElementWrapper tests
aloubyansky Mar 5, 2008 12:42 PM (in response to aloubyansky)Yes, now I remember...
-
5. Re: XmlElementWrapper tests
aloubyansky Mar 6, 2008 8:23 AM (in response to aloubyansky)"adrian" wrote:
http://jira.jboss.com/jira/browse/JBXB-127
This looks confusing to me. Which test was it based on?
As I understand, what should be repeatable is the item particle. Which is. The collection type might have its own properties. Those should not be repeatable, as I imagine... -
6. Re: XmlElementWrapper tests
adrian.brock Mar 6, 2008 9:11 AM (in response to aloubyansky)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? -
7. Re: XmlElementWrapper tests
aloubyansky Mar 6, 2008 9:31 AM (in response to aloubyansky)Yes, I was thinking in terms of a JavaBean. By the item particle I meant the particle for the component. Like this is done in case there is @JBossXmlModelGroup.