On Wednesday, July 16, 2003, at 09:17 AM, Weinzierl Christian wrote:
there are only two things left, i do not understand:
�
1. why creates castor a class for dtCURRENCIES? this is also a simple type! it's basically the same as the countryabbreviation
Enumerations are treated specially because its useful java-wise to have an enumeration class: it provides compile-time type safety. Compile-time type safety is not achievable through Java language features for any other facets, so there's no point in generating classes for them.
2. why can i not use the following code segment? it is basically the same as the example code i found in a tutorial (http://javaboutique.internet.com/tutorials/CastorXML/index-6.html)[failing code snipped]
�
when i try to run the application i get the following exception:
�
java.lang.IllegalArgumentException: RegExp Syntax error: Syntax error: Bad range ; error occured with the following regular expression: (AD|AE|AF|AG|AI......|ZA|ZM|ZW){1,1}(-[A-Z|0-9]{1,3}){0,1}{file: [not available]; line: 484; column: 11}
Interactive Session Ended
�
The file, which is "not available" is (at least i think so, but i am quite sure) the catalogSample.xml file i wanted to import.
The problem is not the it can't find catalogSample.xml -- that "not available" message just means it doesn't know what while it is reading from. The problem is the regexp syntax error "bad range." I think this is because of that {1,1} -- if you want to require that a pattern show up exactly once, you don't need to qualify it with a range. Just drop the {1,1} and you'll be fine, probably.
Rhett
-- Rhett Sutphin Research Assistant (Software) Coordinated Laboratory for Computational Genomics and the Center for Macular Degeneration University of Iowa - Iowa City - Iowa - 52246 mailto:[EMAIL PROTECTED]
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
