Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 80512 invoked from network); 1 Sep 2005 21:09:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2005 21:09:06 -0000 Received: (qmail 12039 invoked by uid 500); 1 Sep 2005 21:09:03 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 11984 invoked by uid 500); 1 Sep 2005 21:09:02 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 11971 invoked by uid 99); 1 Sep 2005 21:09:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2005 14:09:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of robertburrelldonkin@blueyonder.co.uk designates 195.188.213.5 as permitted sender) Received: from [195.188.213.5] (HELO smtp-out2.blueyonder.co.uk) (195.188.213.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2005 14:09:16 -0700 Received: from knossos.elmet ([82.38.65.173]) by smtp-out2.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Thu, 1 Sep 2005 22:09:47 +0100 Subject: Re: [Digester] - object-param-rule strange attribute From: robert burrell donkin To: Jakarta Commons Developers List In-Reply-To: <1125123946.3823.9.camel@localhost.localdomain> References: <20050826155249.0asu0xajxcogsckk@imp4.free.fr> <1125123946.3823.9.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1 Date: Thu, 01 Sep 2005 22:23:32 +0100 Message-Id: <1125609812.5041.78.camel@knossos.elmet> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1-1mdk Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 01 Sep 2005 21:09:47.0759 (UTC) FILETIME=[7BF52FF0:01C5AF39] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Sat, 2005-08-27 at 18:25 +1200, Simon Kitching wrote: > On Fri, 2005-08-26 at 15:52 +0200, S=E9bastien wrote: > > Hi, > > I looked at the DTD of digester-rules and I found something strange. It= defines > > an attribute named param for the tag object-param-rule. This attribute = is > > marked as REQUIRED but is never used in the factory... What is its purp= ose (I > > guess none but why is it there then ?) >=20 > Good question. I don't know either. The code was committed by Robert > Donkin in October 2003, with comment > Added support for ObjectParamRule to xmlrules.=20 > Patch contributed by Anton Maslovsky. >=20 > As far as I can see, the param element doesn't have any purpose. >=20 > The ObjectParamRule doesn't really make sense when using xmlrules > anyway; it's a way of passing an arbitrary java object to the target > method which is very useful when using the API. >=20 > In its current form, it looks to me like: > * "type" must specify a java class name. > * if value is not specified, then a default instance of that > type is passed, else convertutils is used to convert the > value string into the specified type. >=20 > As you say, attribute "param" isn't used anywhere. I don't believe that > digester's xmlrules module validates the xmlrules file against the dtd > anyway, so it can safely be left out. There are a couple of unit tests > for the object-param-rule tag, and neither of them define attribute > "param". >=20 > Perhaps you could create a bugzilla entry for this?? no need: this is definitely a bug in DTD. i've committed the removal of that element. - robert --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org