Hello,

From the following schema:
<xsd:element name="Recording">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="recordingQuality" type="Quality"/>
...

<xsd:simpleType name="Quality">
<xsd:restriction base="xsd:NCName">
<xsd:enumeration value="high"/>
<xsd:enumeration value="medium"/>
<xsd:enumeration value="low"/>
</xsd:restriction>
</xsd:simpleType>

The Castor SourceGen almost does what I want :). It correctly generates the typesafe enum for Quality. And it correctly assigns that type to the "recordingQuality" property of the "Recording" class. But it also generates another class named "RecordingQuality" along with a ClassDescriptor for it, even though that class isn't referenced anywhere by the other generated classes.

Why is Castor doing this and how do I get rid of it?

thanks

Joseph Panico
[EMAIL PROTECTED]



_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev



Reply via email to