Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.codehaus.org/secure/ViewIssue.jspa?key=JIBX-13 Here is an overview of the issue: --------------------------------------------------------------------- Key: JIBX-13 Summary: using/label structure in unordered collection Type: Bug Status: Open Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: JiBX Components: core Versions: 1.0-beta3a Assignee: Dennis Sosnoski Reporter: Cameron Taggart Created: Sat, 17 Apr 2004 3:58 PM Updated: Sat, 17 Apr 2004 3:58 PM Description: 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. --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ jibx-devs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-devs
