Title: Castor Question

A quick query on the source generation aspect of Castor.

Castor’s documentation says that the XSD element type “integer” gets mapped into the Java type “int”. But the W3C document says “The ·value space· of integer is the infinite set {...,-2,-1,0,1,2,...}. The ·base type· of integer is decimal.

Does that mean the XSD “integer” maps more appropriately to a “long” than to an “int” (although that doesn’t still cover the full definition as given by W3C, long seems to be the closest Java primitive type for an “integer”. Java “int” can still be used for the xs:int))? Just curious to get your thoughts on that.


Thanks,

Manoj

 

 

2006-11-07, 19:17:02
The information contained in this e-mail message and any attachments may be privileged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to this e-mail and delete the message and any attachments from your computer.

Reply via email to