I remember that there was a discussion on the developer list a while ago about the subjects list handling and escaping of string properties. You may find something in the archieves, or maybe somebody chimes in who knows more about this.
The type of the properties you get also depents on the getter methods you use. Properties read from a file are usually stored as strings (or lists of strings if they contain a comma). If you call getInt() for instance, the method tries to convert the property into an int.
Oliver
T E Schmitz schrieb:
I realize that the question below was rather too specific for anyone to know the answer off-hand.
But does anyone know what determines whether a property is interpreted as String, Float, Integer or ArrayList?
Regards,
Tarlika Elisabeth Schmitz
-------- Original Message -------- Subject: [configuration] specify a regular expression as string property Date: Sun, 18 Apr 2004 00:39:20 +0100 From: T E Schmitz <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED]
Hello,
I would like to specify a regular expression as a string property. Example: first.name.pattern=.{0,30} or alternatively in an xml configuration file: <pattern>.{0,30}</pattern>
Unfortunately this expression is interpreted as ArrayList. Is there any way to escape it so that it will be interpreted as a String?
Any help is very much appreciated.
-- Dipl.-Inform. Oliver Heger Zentrale Informationsverarbeitung (ZIV) / Bereich Anwenderverfahren Klinikum der Philipps-Universit�t Marburg Bunsenstra�e 3, D-35037 Marburg Tel: +49 6421 28-66592 mailto:[EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
