commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertdon...@mac.com>
Subject Re: Digester: FromXmlRuleSet: Parameter Types?
Date Thu, 06 Jun 2002 21:27:58 GMT
On Thursday, June 6, 2002, at 10:06 PM, Spam Cut wrote:

> Hi,

it should be easy to add this functionality but i'm a bit busy at the 
moment. why not submit a patch?

- robert

> I am trying to do the equivalent of the following...
>
> digester.addCallMethod("*/user/id", "setId", 0, new
> Class[]{Integer.TYPE});
>
> ...using a digester-rules xml file. However, I can't
> seem to find any mechanism for setting the parameter
> type. For example, the xml element might look like
> this...
>
> <call-method-rule pattern="id" methodname="setId"
> paramcount="0" />
>
> ...but how could I make it look more like this...
>
> <call-method-rule pattern="id" methodname="setId"
> paramcount="0" paramtype="java.lang.Integer.TYPE" />
>
> ...?
>
> Thank You!
>
> =====
> spamcut@yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.
> org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.
> org>
>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message