[ http://jira.codehaus.org/browse/JIBX-13?page=all ] Dennis Sosnoski closed JIBX-13: -------------------------------
> using/label structure in unordered collection > --------------------------------------------- > > Key: JIBX-13 > URL: http://jira.codehaus.org/browse/JIBX-13 > Project: JiBX > Type: Bug > Components: core > Versions: 1.0-beta3a > Reporter: Cameron Taggart > Assignee: Dennis Sosnoski > Priority: Minor > Attachments: binding-bug13.xml > > > It does not look like the using/label structure worked within an unordered > collection. I run into this issue a couple of times when working on a WFS > demo for xsd2jibx. I'm looking forward to the beta 4 redesign of > using/label. Here are some details on my tests: > Here is the error: > C:\projects\xsd2jibx\demo\gis\src-gen>jibx-bind net\opengis\wfs\wfs.jibx.xml > java.lang.IllegalStateException: Internal error: No test for implicit value > from collection > at > org.jibx.binding.def.PropertyDefinition.genTest(PropertyDefinition.java:379) > at > org.jibx.binding.def.OptionalStructureWrapper.genContentMarshal(OptionalStructureWrapper.java:85) > at > org.jibx.binding.def.NestedCollection.genContentMarshal(NestedCollection.java:237) > at > org.jibx.binding.def.ObjectBinding.genMarshalContentCall(ObjectBinding.java:668) > at > org.jibx.binding.def.ObjectBinding.genContentMarshal(ObjectBinding.java:728) > at > org.jibx.binding.def.ComponentProperty.genContentMarshal(ComponentProperty.java:246) > at > org.jibx.binding.def.NestedStructure.genContentMarshal(NestedStructure.java:185) > at > org.jibx.binding.def.ObjectBinding.genMarshalContentCall(ObjectBinding.java:668) > at > org.jibx.binding.def.ObjectBinding.genContentMarshal(ObjectBinding.java:728) > at > org.jibx.binding.def.ElementWrapper.genContentMarshal(ElementWrapper.java:384) > at > org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition.java:552) > at > org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext.java:594) > at > org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:525) > at org.jibx.binding.Compile.compile(Compile.java:283) > at org.jibx.binding.Compile.main(Compile.java:341) > Exception in thread "main" > Original. This does NOT bind: > <mapping name="Request" class="net.opengis.wfs.Request"> > <namespace uri="http://www.opengis.net/wfs" default="elements"/> > <collection field="choiceList" ordered="false"> > <structure map-as="net.opengis.wfs.GetCapabilities" > usage="optional"></structure> > <structure map-as="net.opengis.wfs.DescribeFeatureType" > usage="optional"></structure> > <structure map-as="net.opengis.wfs.Transaction" > usage="optional"></structure> > <structure type="net.opengis.wfs.GetFeatureType" name="GetFeature" > usage="optional" using="net.opengis.wfs.GetFeatureType"></structure> > <structure type="net.opengis.wfs.GetFeatureType" > name="GetFeatureWithLock" usage="optional" > using="net.opengis.wfs.GetFeatureType"></structure> > <structure map-as="net.opengis.wfs.LockFeatureType" > usage="optional"></structure> > </collection> > </mapping> > This does bind, but it isn't what I'm looking for. I made the collection > ordered and the two using/label structures required. > <mapping name="Request" class="net.opengis.wfs.Request"> > <namespace uri="http://www.opengis.net/wfs" default="elements"/> > <collection field="choiceList" ordered="true"> > <structure map-as="net.opengis.wfs.GetCapabilities" > usage="optional"></structure> > <structure map-as="net.opengis.wfs.DescribeFeatureType" > usage="optional"></structure> > <structure map-as="net.opengis.wfs.Transaction" > usage="optional"></structure> > <structure type="net.opengis.wfs.GetFeatureType" name="GetFeature" > using="net.opengis.wfs.GetFeatureType"></structure> > <structure type="net.opengis.wfs.GetFeatureType" > name="GetFeatureWithLock" using="net.opengis.wfs.GetFeatureType"></structure> > <structure map-as="net.opengis.wfs.LockFeatureType" > usage="optional"></structure> > </collection> > </mapping> > I tried various other combinations with similar results. My current work > around is to add another complexType in the xsd, so I don't need to use the > using/label stuff. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ jibx-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-devs
