History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CASTOR-1846
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Ken Klose
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
castor

Allow binding file specify class name of choice object

Created: 17/Jan/07 06:23 AM   Updated: 17/Jan/07 07:37 AM
Component/s: XML code generator
Affects Version/s: 1.4
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
dependent
 


 Description  « Hide
Inside of a large schema I have the following complexType:

<xs:complexType name="LocationType">
<xs:sequence>
<xs:element name="Latitude" type="LatitudeType"/>
<xs:element name="Longitude" type="LongitudeType"/>
<xs:choice minOccurs="0">
<xs:element name="Altitude" type="AltitudeType"/>
<xs:element name="Elevation" type="ElevationType"/>
</xs:choice>
</xs:sequence>
</xs:complexType>

Two classes are generated as a result, LocationType and LocationTypeChoice. I want both of these classes to be specified as implementing an interface. I can do LocationType like this:

<complexTypeBinding name="LocationType">
<java-class package="other.package.schema">
<implements>some.package.myInterface</implements>
</java-class>
</complexTypeBinding>

I want a mechanism to do this for the LocationTypeChoice class as well.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.