Return-Path: Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 95684 invoked from network); 23 Apr 2003 16:20:14 -0000 Received: from pcow053o.blueyonder.co.uk (HELO blueyonder.co.uk) (195.188.53.96) by daedalus.apache.org with SMTP; 23 Apr 2003 16:20:14 -0000 Received: from localhost ([80.194.24.21]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.757.75); Wed, 23 Apr 2003 17:22:53 +0100 Date: Wed, 23 Apr 2003 17:21:12 +0100 Subject: Re: [digester] automatic conversion to primitives? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) From: robert burrell donkin To: "Jakarta Commons Users List" Content-Transfer-Encoding: 7bit In-Reply-To: <3E9EEBEC.3000108@ptc.com> Message-Id: <9959C20E-75A7-11D7-9080-003065DC754C@blueyonder.co.uk> X-Mailer: Apple Mail (2.482) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N hi erik that depends on which Rule you're using :) if you're using CallMethodRule then this uses ConvertUtils (from commons BeanUtils) to perform this conversion in a flexible way. so long as the default converters are registered, then body text strings will be converted to primitives (if that is what the method call takes). - robert On Thursday, April 17, 2003, at 07:01 PM, Erik Price wrote: > When Digester encounters some body content, and it has been instructed to > invoke a method expecting a primitive (say, an int) and pass the body > content as the argument to that method, is it automatically converting > the String data read from the XML stream to the appropriate type? I'm > not getting an exception, so I assume so? > > > Erik > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org >