Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 24871 invoked from network); 19 May 2004 13:51:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 May 2004 13:51:57 -0000 Received: (qmail 29707 invoked by uid 500); 19 May 2004 13:50:19 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 29618 invoked by uid 500); 19 May 2004 13:50:19 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 29531 invoked by uid 98); 19 May 2004 13:50:18 -0000 Received: from Ulrich@optimal-systems.de by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(213.61.224.35):. Processed in 0.102383 secs); 19 May 2004 13:50:18 -0000 X-Qmail-Scanner-Mail-From: Ulrich@optimal-systems.de via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(213.61.224.35):. Processed in 0.102383 secs) Received: from unknown (HELO WEBCAM1) (213.61.224.35) by hermes.apache.org with SMTP; 19 May 2004 13:50:16 -0000 Received: from osapp.optimal-systems.de ([195.127.121.48]) by WEBCAM1 with smtp (Exim 4.32) id 1BQRSO-0005YK-B6 for commons-user@jakarta.apache.org; Wed, 19 May 2004 15:50:04 +0200 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Subject: [digester] How to convert the type of a XML-value before passing it as argument to bean Date: Wed, 19 May 2004 15:50:04 +0200 Message-ID: <7ED06C84BBC8094087344246675783EBB2FFC0@OSAPP> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [digester] How to convert the type of a XML-value before passing it as argument to bean thread-index: AcQ9qC/t5FPGXws9TbOJ4ZTdtKCdlg== From: "Lutz Ulrich" To: X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hello, the XML i want to parse with digester contains long values converted to hexadecimal format, like 34FA5 since the text represents a long value, the corresponding bean shall have a corresponding long property, not a string property: class MyBean { long value; public long getValue() { return value; } public void setValue(long value) { this.value =3D value; } } how do you convert the long value given as a hexadezimal string to long without letting the conversion be part of the bean logic? of course, i know the conversion routine java.lang.Long.parseLong(String s, int radix). but how do i configure my digester to call this method before passing the resulting value to the bean? regards, lutz --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org